/* Common Auth Page Styles */

/* Body and Layout */
body {
    background: #2563eb !important;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 20px;
}

/* Container */
.auth-container {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
}

.auth-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding: 20px;
    position: relative;
}

/* Logo Container */
.logo-container {
    text-align: center;
    margin-bottom: 20px;
}

.cisce-logo {
    max-width: 40%;
    margin: 0 auto 15px;
    display: block;
}

.motto-banner {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #333;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    margin: 0 auto 20px;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
    font-family: 'Ubuntu', sans-serif;
}

.exam-eye-title {
    font-size: 32px;
    font-weight: bold;
    color: #2563eb;
    margin: 15px 0 10px;
    font-family: 'Ubuntu', sans-serif;
}

.auth-heading {
    font-size: 24px;
    font-weight: 600;
    color: #000000;
    margin-bottom: 10px;
    font-family: 'Ubuntu', sans-serif;
}

.council-subtitle {
    font-size: 14px;
    color: #666666;
    margin-bottom: 20px;
    font-family: 'Ubuntu', sans-serif;
}

/* Form Elements */
.form-label {
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
    font-size: 15px;
}

.invalid-feedback {
    display: block;
    margin-top: 5px;
}

/* Buttons */
.auth-btn {
    width: 100%;
    background: #2563eb;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.auth-btn:hover {
    background: #1e40af;
}

.auth-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

/* Alerts */
.alert {
    border-radius: 8px;
    margin-bottom: 20px;
    padding: 12px 15px;
}

.alert-danger {
    background-color: #fee;
    border: 1px solid #fcc;
    color: #c33;
}

.alert-success {
    background-color: #efe;
    border: 1px solid #cfc;
    color: #3c3;
}

.alert-info {
    background-color: #eef;
    border: 1px solid #ccf;
    color: #33c;
}

/* Floating Elements */
.cookie-button {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 8px 15px;
    font-size: 12px;
    color: #666;
    cursor: pointer;
    transition: background 0.3s ease;
    z-index: 1000;
}

.cookie-button:hover {
    background: #ffffff;
}

.help-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: #333333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;
    transition: background 0.3s ease;
    z-index: 1000;
}

.help-icon:hover {
    background: #000000;
}

/* Login Page Specific Styles */
.mobile-input-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 25px;
}

/* Validation error styles for mobile input */
.mobile-input.is-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1) !important;
}

.mobile-input-group .invalid-feedback {
    width: 100%;
    flex-basis: 100%;
    margin-top: 0.25rem;
    order: 3;
}

/* Country Code Dropdown Styles */
.country-code-wrapper {
    position: relative;
}

.country-code-dropdown {
    width: 70px;
    height: 100%;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px 8px;
    background: #f8f9fa;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    color: #333;
    user-select: none;
    transition: all 0.2s ease;
}

.country-code-dropdown:hover {
    background: #e9ecef;
}

.country-code-dropdown.active {
    border-color: #2563eb;
    background: #ffffff;
}

.country-code-dropdown:focus {
    outline: none;
}

.country-code-dropdown .dropdown-arrow {
    font-size: 10px;
    margin-left: 5px;
    transition: transform 0.2s ease;
}

.country-code-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

.country-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 220px;
    max-height: 250px;
    overflow-y: auto;
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    margin-top: 4px;
    display: none;
}

.country-dropdown-menu.show {
    display: block;
}

.country-option {
    display: flex;
    align-items: center;
    padding: 5px 8px;
    cursor: pointer;
    transition: background 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

.country-option:last-child {
    border-bottom: none;
}

.country-option:hover {
    background: #f8f9fa;
}

.country-option.selected {
    background: #f0f7ff;
}

.country-option .country-iso {
    font-weight: 600;
    color: #333;
    min-width: 10px;
    font-size: 10px;
}

.country-option .country-name {
    flex: 1;
    color: #666;
    font-size: 13px;
    margin-left: 8px;
}

.country-option .check-icon {
    color: #2563eb;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.country-option.selected .check-icon {
    opacity: 1;
}

/* Scrollbar styling for dropdown */
.country-dropdown-menu::-webkit-scrollbar {
    width: 6px;
}

.country-dropdown-menu::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.country-dropdown-menu::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.country-dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

.mobile-input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 16px;
}

.mobile-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.send-otp-btn {
    margin-top: 10px;
}

.security-policy {
    text-align: center;
    font-size: 12px;
    color: #666666;
    margin-top: 20px;
}

/* OTP Page Specific Styles */
.otp-sent-text {
    font-size: 14px;
    color: #666666;
    margin-bottom: 25px;
    font-family: 'Ubuntu', sans-serif;
}

.otp-inputs-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.otp-input {
    width: 50px;
    height: 50px;
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.otp-input:focus {
    outline: none;
    border-color: #2563eb;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.resend-timer {
    text-align: center;
    font-size: 14px;
    color: #666666;
    margin-bottom: 20px;
    font-family: 'Ubuntu', sans-serif;
}

.resend-timer span {
    color: #2563eb;
    font-weight: 600;
}

.resend-link {
    color: #2563eb !important;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    display: inline-block;
    padding: 8px 20px;
    border-radius: 6px;
    transition: all 0.3s ease;
    border: 1px solid #2563eb;
    background: rgba(37, 99, 235, 0.05);
}

.resend-link:hover {
    background: #2563eb;
    color: #ffffff !important;
    text-decoration: none !important;
}

.verify-login-btn {
    margin-bottom: 15px;
}
#countryDropdownMenu{
    max-height: 100px;
}
.change-mobile-link {
    display: block;
    text-align: center;
    color: #2563eb !important;
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 8px;
    font-family: 'Ubuntu', sans-serif;
}

.change-mobile-link:hover {
    text-decoration: underline;
}

.attempts-text,
.expiry-text {
    text-align: center;
    font-size: 13px;
    color: #666666;
    margin-bottom: 8px;
    font-family: 'Ubuntu', sans-serif;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .auth-card {
        padding: 30px 20px;
    }

    .cisce-logo {
        width: 100px;
        height: 100px;
    }

    .exam-eye-title {
        font-size: 28px;
    }

    .auth-heading {
        font-size: 20px;
    }

    .otp-input {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
}

