/* ============================================
   Modern Signin Page Styles - Exam Portal
   Glassmorphism Theme matching Landing Page
   ============================================ */

/* Base Styles */
html,
body {
    min-height: 100%;
    margin: 0;
    padding: 0;
}

body {
    overflow-y: auto !important;
    overflow-x: hidden;
}

.signup-page-modern {
    min-height: 100vh;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

.signin-page-modern {
    min-height: 100vh;
    background: linear-gradient(135deg, #f0f4f8 0%, #e8eef5 50%, #f5f7fa 100%);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1a1a2e;
    position: relative;
}

/* Background Elements */
.signin-background {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.signin-pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.06) 0%, transparent 40%);
    z-index: 1;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: #2471a3;
    top: -150px;
    right: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: #8b5cf6;
    bottom: 10%;
    left: -100px;
    animation-delay: -5s;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: #06b6d4;
    top: 40%;
    right: 15%;
    animation-delay: -10s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(30px, -40px) scale(1.05);
    }

    50% {
        transform: translate(-20px, 30px) scale(0.95);
    }

    75% {
        transform: translate(40px, 20px) scale(1.02);
    }
}

/* Navigation */
.signin-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 2rem;
    background: transparent;
}

.nav-container {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
}

.nav-logo {
    height: 44px;
    width: auto;
}

.nav-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a2e;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    font-size: 0.9rem;
}

.btn-glass-outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: #1a1a2e;
}

.btn-glass-outline:hover {
    background: rgba(36, 113, 163, 0.1);
    border-color: #2471a3;
    color: #2471a3;
    transform: translateY(-2px);
}

/* Main Container */
.signin-container {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 6rem 2rem 4rem;
}

.signin-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1100px;
    width: 100%;
    align-items: center;
}

/* Left Side - Info */
.signin-info {
    padding: 2rem;
}

.info-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(36, 113, 163, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #2471a3;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(36, 113, 163, 0.2);
}

.info-badge i {
    color: #10b981;
}

.info-title {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #1a1a2e;
    line-height: 1.2;
}

.info-subtitle {
    font-size: 1.125rem;
    color: #4a4a6a;
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.info-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1rem;
    color: #4a4a6a;
}

.info-feature .feature-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2471a3, #1a5276);
    border-radius: 12px;
    color: #ffffff;
}

/* Right Side - Form */
.signin-form-wrapper {
    display: flex;
    justify-content: center;
}

.signin-glass-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    padding: 2.5rem;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.15), 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 420px;
}

/* Form Styles */
.signin-glass-card .card {
    background: transparent;
    border: none;
    box-shadow: none;
    margin-bottom: 0;
}

.signin-glass-card .card-header {
    background: transparent;
    border: none;
    padding: 0 0 1.5rem 0;
    text-align: center;
}

.signin-glass-card .card-header img {
    max-height: 60px;
    padding: 0;
    margin-bottom: 0.5rem;
}

.signin-glass-card .card-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
}

.signin-glass-card .card-body {
    padding: 0;
}

/* Form Elements */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #4a4a6a;
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 0.95rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: #ffffff;
    color: #1a1a2e;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #2471a3;
    box-shadow: 0 0 0 4px rgba(36, 113, 163, 0.1);
}

.form-control::placeholder {
    color: #9ca3af;
}

/* Select dropdown styling */
select.form-control {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #ffffff;
    cursor: pointer;
    color: #6c6c8a !important;
    padding: 0.875rem 2.5rem 0.875rem 1rem;
    height: auto;
    min-height: 48px;
    line-height: 1.5;
    display: block;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236c6c8a' 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 0.75rem center;
    background-size: 16px;
}

select.form-control.has-value {
    color: #1a1a2e !important;
}

select.form-control option {
    color: #1a1a2e;
    background-color: #ffffff;
    padding: 0.5rem;
    font-size: 0.95rem;
}

select.form-control option[value=""] {
    color: #6c6c8a;
}

select.form-control:focus {
    color: #1a1a2e;
}

/* Buttons in Form */
.btn-primary {
    background: linear-gradient(135deg, #2471a3, #1a5276);
    color: #ffffff;
    border: none;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(36, 113, 163, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(36, 113, 163, 0.5);
}

.btn-outline-secondary {
    background: transparent;
    border: 2px solid #e5e7eb;
    color: #4a4a6a;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
}

.btn-outline-secondary:hover {
    border-color: #2471a3;
    color: #2471a3;
    background: rgba(36, 113, 163, 0.05);
}

.btn-link {
    color: #2471a3;
    text-decoration: none;
    font-weight: 600;
}

.btn-link:hover {
    text-decoration: underline;
}

/* Alert Styles */
.alert {
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.alert-info {
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.2);
    color: #0891b2;
}

/* Links */
.signin-glass-card a {
    color: #2471a3;
    text-decoration: none;
    font-weight: 600;
}

.signin-glass-card a:hover {
    text-decoration: underline;
}

/* Fix for Sign In button visibility */
.signin-glass-card a.btn-primary {
    color: #ffffff !important;
    text-decoration: none;
}

/* Auth Steps */
.auth-step {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.d-none {
    display: none !important;
}

/* Footer */
.signin-footer {
    position: relative;
    z-index: 2;
    padding: 1.5rem 2rem;
    text-align: center;
}

.footer-content {
    color: #6c6c8a;
    font-size: 0.875rem;
}

/* Icon Sizes */
.icon-16 {
    width: 16px;
    height: 16px;
}

.icon-20 {
    width: 20px;
    height: 20px;
}

/* Additional signup specific styles */
.signup-page-modern .signin-glass-card {
    max-width: 450px;
}

.signup-page-modern .form-group label.d-flex {
    font-weight: normal;
    cursor: pointer;
}

.signup-page-modern .form-group label.d-flex input[type="checkbox"] {
    margin-right: 0.5rem;
}

.signup-page-modern .gap-3 {
    gap: 1rem;
}

.signup-page-modern .p0 {
    padding: 0 !important;
}

.signup-page-modern .mt-1 {
    margin-top: 0.25rem !important;
}

.signup-page-modern .ms-1 {
    margin-left: 0.25rem !important;
}

.signup-page-modern .fw-semibold {
    font-weight: 600 !important;
}

.signup-page-modern .small {
    font-size: 0.875rem;
}

.signup-page-modern .d-flex {
    display: flex !important;
}

.signup-page-modern .align-items-start {
    align-items: flex-start !important;
}

.signup-page-modern .border-0 {
    border: none !important;
}

.signup-page-modern .bg-transparent {
    background: transparent !important;
}

/* Password Input Group */
.password-input-group {
    position: relative;
}

.password-input-group .form-control {
    padding-right: 3rem;
}

.password-toggle-btn {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6c6c8a;
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.password-toggle-btn:hover {
    color: #2471a3;
}

/* Verification Badge */
.verification-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 10px;
    font-size: 0.9rem;
    color: #059669;
}

/* Success Icon */
.success-icon {
    display: flex;
    justify-content: center;
}

.success-icon svg {
    width: 64px;
    height: 64px;
    stroke-width: 1.5;
}

/* Icon 14px */
.icon-14 {
    width: 14px;
    height: 14px;
}

/* Input Group Button */
.input-group {
    display: flex;
    gap: 0.5rem;
}

.input-group .form-control {
    flex: 1;
}

.input-group .btn {
    white-space: nowrap;
}

.btn-outline-primary {
    background: transparent;
    border: 2px solid #2471a3;
    color: #2471a3;
    padding: 0.625rem 1.25rem;
    font-weight: 600;
    border-radius: 12px;
}

.btn-outline-primary:hover {
    background: #2471a3;
    color: #ffffff;
}

/* Form Text */
.form-text {
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

.text-danger {
    color: #dc2626;
}

/* Alert Styles Enhancement */
.alert svg {
    vertical-align: middle;
    margin-right: 0.5rem;
}

/* Responsive */
@media (max-width: 992px) {
    .signin-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .signin-info {
        text-align: center;
        padding: 1rem;
    }

    .info-features {
        align-items: center;
    }

    .info-title {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .signin-nav {
        padding: 1rem;
    }

    .signin-container {
        padding: 5rem 1rem 2rem;
    }

    .signin-glass-card {
        padding: 1.5rem;
        border-radius: 20px;
    }

    .info-title {
        font-size: 1.75rem;
    }

    .info-subtitle {
        font-size: 1rem;
    }
}

/* Profile Image Upload */
.avatar-upload-wrapper {
    position: relative !important;
    width: 120px !important;
    height: 120px !important;
    margin: 0 auto 0.5rem !important;
    display: block !important;
}

.avatar-preview {
    width: 120px !important;
    height: 120px !important;
    display: block !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    border: 3px solid rgba(36, 113, 163, 0.15) !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08) !important;
    background: #f5f7fa !important;
}

.avatar-preview img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

.profile-upload-btn {
    position: absolute !important;
    bottom: 2px !important;
    right: 2px !important;
    width: 34px !important;
    height: 34px !important;
    background: linear-gradient(135deg, #2471a3, #1a5276) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    box-shadow: 0 3px 8px rgba(36, 113, 163, 0.4) !important;
    transition: all 0.2s ease !important;
    z-index: 10 !important;
    border: 3px solid #fff !important;
    padding: 0 !important;
}

.profile-upload-btn:hover {
    transform: scale(1.1);
    background: linear-gradient(135deg, #1a5276, #0e3a53) !important;
}

.profile-upload-btn i,
.profile-upload-btn svg {
    color: #fff !important;
    width: 14px !important;
    height: 14px !important;
    pointer-events: none;
}

/* Gender Select Placeholder Fix */
.signup-page-modern select.form-control {
    color: #6c6c8a !important;
}

.signup-page-modern select.form-control.has-value {
    color: #1a1a2e !important;
}