/* ===================== NAVBAR HIDE ON SCROLL ===================== */
.navbar.hidden {
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.navbar {
    transition: transform 0.3s ease;
}

/* ===================== SIGNUP PAGE LAYOUT ===================== */
.signup-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 200px);
    padding: 40px 20px;
}

.signup-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 500px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: zoomIn 0.8s ease;
    opacity: 0;
    animation-fill-mode: forwards;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===================== SIGNUP HEADER ===================== */
.signup-header {
    text-align: center;
    margin-bottom: 35px;
    animation: fadeInDown 1s ease 0.3s;
    opacity: 0;
    animation-fill-mode: forwards;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.signup-header h1 {
    color: #333;
    font-size: 32px;
    margin-bottom: 10px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
}

.signup-header p {
    color: #666;
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
}

/* ===================== FORM GROUPS ===================== */
.form-group {
    margin-bottom: 25px;
    animation: fadeInUp 0.8s ease;
    opacity: 0;
    animation-fill-mode: forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-group:nth-child(1) {
    animation-delay: 0.4s;
}

.form-group:nth-child(2) {
    animation-delay: 0.5s;
}

.form-group:nth-child(3) {
    animation-delay: 0.6s;
}

.form-group:nth-child(4) {
    animation-delay: 0.7s;
}

.form-group:nth-child(5) {
    animation-delay: 0.8s;
}

.form-group:nth-child(6) {
    animation-delay: 0.9s;
}

.form-group:nth-child(7) {
    animation-delay: 1s;
}

.form-group:nth-child(8) {
    animation-delay: 1.1s;
}

label {
    display: block;
    color: #333;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
}

/* ===================== SUB-ROLE GROUPS ===================== */
.sub-role-group {
    margin-bottom: 20px;
    overflow: visible;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.sub-role-group[style*="display: block"] {
    animation: slideDown 0.4s ease forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================== INPUT FIELDS ===================== */
input[type="text"],
input[type="password"],
input[type="email"] {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

input[type="text"]:hover,
input[type="password"]:hover,
input[type="email"]:hover {
    border-color: #b0b0b0;
}

/* ===================== SELECT DROPDOWN ===================== */
select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2321a300' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 45px;
}

select:focus {
    outline: none;
    border-color: #667eea;
    background-color: white;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

select:hover {
    border-color: #b0b0b0;
}

select option {
    padding: 12px;
    font-family: 'Poppins', sans-serif;
    background: white;
    color: #333;
}

select option:disabled {
    color: #999;
}

/* ===================== PASSWORD STRENGTH ===================== */
.password-strength {
    margin-top: 8px;
    font-size: 12px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.strength-bar {
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    margin-top: 5px;
    overflow: hidden;
}

.strength-bar-fill {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.strength-weak .strength-bar-fill {
    width: 33%;
    background: #dc3545;
}

.strength-medium .strength-bar-fill {
    width: 66%;
    background: #ffc107;
}

.strength-strong .strength-bar-fill {
    width: 100%;
    background: #28a745;
}

/* ===================== TERMS & CONDITIONS ===================== */
.terms-group {
    margin-bottom: 25px;
    animation: fadeInUp 0.8s ease 1s;
    opacity: 0;
    animation-fill-mode: forwards;
}

.terms-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.terms-checkbox input[type="checkbox"] {
    margin-top: 3px;
    cursor: pointer;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.terms-checkbox label {
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
}

.terms-checkbox a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.terms-checkbox a:hover {
    text-decoration: underline;
}

/* ===================== SIGNUP BUTTON ===================== */
.signup-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #41ed3b 0%, #099f04 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Orbitron', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease 1.1s;
    opacity: 0;
    animation-fill-mode: forwards;
}

.signup-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.signup-btn:hover::before {
    width: 400px;
    height: 400px;
}

.signup-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.signup-btn:active {
    transform: translateY(-1px);
}

.signup-btn:disabled {
    background: linear-gradient(135deg, #b0b0b0 0%, #888888 100%);
    cursor: not-allowed;
    transform: none;
}

/* ===================== LOGIN LINK ===================== */
.login-link {
    text-align: center;
    margin-top: 25px;
    font-size: 14px;
    color: #666;
    font-family: 'Poppins', sans-serif;
    animation: fadeInUp 0.8s ease 1.2s;
    opacity: 0;
    animation-fill-mode: forwards;
}

.login-link a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.login-link a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* ===================== ERROR & SUCCESS MESSAGES ===================== */
.error-message {
    color: #dc3545;
    font-size: 14px;
    margin-top: 15px;
    padding: 12px;
    background: rgba(220, 53, 69, 0.1);
    border-radius: 6px;
    border-left: 4px solid #dc3545;
    display: none;
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.success-message {
    color: #28a745;
    font-size: 14px;
    margin-top: 15px;
    padding: 12px;
    background: rgba(40, 167, 69, 0.1);
    border-radius: 6px;
    border-left: 4px solid #28a745;
    display: none;
    animation: slideInFromRight 0.5s ease;
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===================== RESPONSIVE DESIGN ===================== */
@media (max-width: 768px) {
    .signup-container {
        padding: 30px 25px;
        margin: 20px;
    }

    .signup-header h1 {
        font-size: 26px;
    }

    .signup-header p {
        font-size: 14px;
    }

    input[type="text"],
    input[type="password"],
    input[type="email"],
    select {
        padding: 12px 15px;
    }

    select {
        background-size: 18px;
        padding-right: 40px;
    }

    .signup-btn {
        padding: 12px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .signup-page {
        padding: 20px 10px;
    }

    .signup-container {
        padding: 25px 20px;
    }

    .signup-header h1 {
        font-size: 24px;
    }

    input[type="text"],
    input[type="password"],
    input[type="email"],
    select {
        font-size: 14px;
    }
}