* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    background: #fdf9ed;
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
}

/* Navbar Styles */
.navbar-section {
    width: 100%;
    background: rgb(255, 249, 225);
    font-family: 'Oswald', sans-serif;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.navbar {
    display: flex;
    padding: 1% 6%;
    justify-content: space-between;
    align-items: center;
}

.navbar img {
    height: 100px;
}

.back-button {
    background-color: rgba(50,50,52,255);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Oswald', sans-serif;
    font-size: 16px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.back-button:hover {
    background-color: #333;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.back-button:focus,
.back-button:active,
.back-button:visited {
    color: white;
    
}

/* Container Styles */
.container_register {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 150px 20px 50px;
}

.box {
    background: #fff;
    display: flex;
    flex-direction: column;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 600px;
}

.form-box header {
    font-family: 'Oswald', sans-serif;
    font-size: 32px;
    font-weight: 600;
    color: rgba(50,50,52,255);
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 25px;
    text-align: center;
}

/* Success/Error Message */
.message {
    background-color: #d4edda;
    border: 2px solid #c3e6cb;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
}

.message p {
    color: #155724;
    font-size: 16px;
    font-weight: 500;
    margin: 0;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: rgba(50,50,52,255);
}

/* Password Container */
.password-wrapper {
    position: relative;
}

.password-wrapper .form-control {
    padding-right: 45px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    font-size: 16px;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-password:hover {
    color: rgba(50,50,52,255);
}

/* Error Message */
.error {
    color: #ff6b6b;
    font-size: 13px;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Terms and Conditions */
.form-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.form-check-input {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.form-check-label {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
}

.form-check-label a {
    color: rgba(50,50,52,255);
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.3s ease;
}

.form-check-label a:hover {
    color: #333;
}

/* Button Styles */
.btn {
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Oswald', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    width: 100%;
    background: rgba(50,50,52,255);
    color: white;
    margin-bottom: 15px;
}

.btn-primary:hover {
    background-color: #333;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-secondary {
    background-color: transparent;
    color: rgba(50,50,52,255);
    border: 2px solid rgba(50,50,52,255);
    padding: 12px 30px;
    font-size: 15px;
}

.btn-secondary:hover {
    background-color: rgba(50,50,52,255);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.submit {
    margin-top: 10px;
}

/* Links */
.links {
    text-align: center;
    margin-top: 15px;
    color: #666;
    font-size: 14px;
}

.links a {
    color: rgba(50,50,52,255);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.links a:hover {
    color: #333;
    text-decoration: underline;
}

/* Loading Screen */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    transition: opacity 2.5s ease, visibility 3s ease;
}

#loading-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}



/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        padding: 2% 4%;
    }

    .navbar img {
        height: 80px;
    }

    .container_register {
        padding: 130px 15px 30px;
    }

    .box {
        padding: 30px 25px;
    }

    .form-box header {
        font-size: 26px;
    }

    .back-button {
        font-size: 14px;
        padding: 8px 15px;
    }
}

@media (max-width: 480px) {
    .navbar img {
        height: 70px;
    }

    .box {
        padding: 25px 20px;
    }

    .form-box header {
        font-size: 24px;
    }

    .form-check {
        flex-direction: column;
    }
}