/* Custom Modern Student Login Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-dark: #070913;
    --card-bg: rgba(15, 22, 42, 0.55);
    --border-color: rgba(255, 255, 255, 0.08);
    --primary-gradient: linear-gradient(135deg, #6366f1, #a855f7);
    --hover-gradient: linear-gradient(135deg, #4f46e5, #9333ea);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-glow: rgba(99, 102, 241, 0.25);
    --font-family: 'Plus Jakarta Sans', 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body.student-login-body {
    margin: 0;
    padding: 0;
    font-family: var(--font-family);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    position: relative;
}

/* Background animated blobs */
.background-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.25;
    animation: floatBlob 20s infinite ease-in-out alternate;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, #6366f1 0%, rgba(99, 102, 241, 0) 70%);
}

.blob-2 {
    bottom: -15%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, #db2777 0%, rgba(219, 39, 119, 0) 70%);
    animation-delay: -5s;
}

.blob-3 {
    top: 40%;
    left: 50%;
    width: 30vw;
    height: 30vw;
    background: radial-gradient(circle, #a855f7 0%, rgba(168, 85, 247, 0) 70%);
    animation-delay: -10s;
}

@keyframes floatBlob {
    0% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(5%, 10%) scale(1.1);
    }
    100% {
        transform: translate(-5%, -5%) scale(0.95);
    }
}

/* Login layout container */
.student-login-wrapper {
    width: 100%;
    max-width: 1000px;
    padding: 20px;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInPage 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInPage {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Glassmorphic card */
.login-card {
    width: 100%;
    max-width: 480px;
    background: var(--card-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border-color);
    border-radius: 28px;
    padding: 45px 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-gradient);
}

/* Register card styling */
.register-card {
    width: 100%;
    max-width: 580px;
    background: var(--card-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border-color);
    border-radius: 28px;
    padding: 45px 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.register-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-gradient);
}

/* Form row grid for multi-column inputs */
.form-row-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 16px;
}


/* Logo and header */
.login-logo-section {
    text-align: center;
    margin-bottom: 35px;
}

.login-logo-img {
    height: 70px;
    width: auto;
    object-fit: contain;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 15px rgba(99, 102, 241, 0.3));
    transition: transform 0.4s ease;
}

.login-logo-img:hover {
    transform: scale(1.05);
}

.login-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 6px 0;
    letter-spacing: -0.5px;
}

.login-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

/* Form Styles */
.form-group-custom {
    margin-bottom: 22px;
    position: relative;
    text-align: left;
}

.form-label-custom {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}

.input-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon-wrapper i {
    position: absolute;
    left: 16px;
    color: var(--text-secondary);
    font-size: 16px;
    transition: color 0.3s ease;
}

.form-input-custom {
    width: 100%;
    padding: 14px 16px 14px 46px;
    font-size: 14px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    color: var(--text-primary);
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: var(--font-family);
}

.form-input-custom:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.form-input-custom:focus {
    border-color: #6366f1;
    background: rgba(15, 23, 42, 0.8);
    box-shadow: 0 0 0 4px var(--accent-glow);
}

.form-input-custom:focus + i {
    color: #6366f1;
}

/* Password eye button or optional styling features if needed */

/* Extra features */
.form-options-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    margin-bottom: 25px;
}

.remember-me-container {
    display: flex;
    align-items: center;
    user-select: none;
    cursor: pointer;
    color: var(--text-secondary);
}

.remember-me-checkbox {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(15, 23, 42, 0.6);
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    cursor: pointer;
    margin-right: 8px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.remember-me-checkbox:checked {
    background: #6366f1;
    border-color: #6366f1;
}

.remember-me-checkbox:checked::after {
    content: "\f00c";
    font-family: "FontAwesome";
    color: #fff;
    font-size: 10px;
    font-weight: 900;
}

.forgot-password-link {
    color: #a855f7;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.forgot-password-link:hover {
    color: #c084fc;
    text-decoration: underline;
}

/* Submit Button */
.submit-btn-custom {
    width: 100%;
    padding: 14px;
    background: var(--primary-gradient);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
    font-family: var(--font-family);
}

.submit-btn-custom:hover {
    background: var(--hover-gradient);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

.submit-btn-custom:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.3);
}

/* Secondary Actions */
.secondary-action-section {
    text-align: center;
    margin-top: 30px;
    font-size: 14px;
    color: var(--text-secondary);
}

.signup-accent-link {
    color: #6366f1;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.signup-accent-link:hover {
    color: #818cf8;
    text-decoration: underline;
}

/* Footer / Copyright */
.login-footer {
    margin-top: 35px;
    text-align: center;
    font-size: 12px;
    color: rgba(148, 163, 184, 0.4);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
}

/* ASP.NET validation styling integration */
.validation-summary-errors {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.25);
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: left;
}

.validation-summary-errors ul {
    margin: 0;
    padding-left: 20px;
    font-size: 13px;
    color: #fca5a5;
}

.field-validation-error {
    display: block;
    font-size: 12px;
    color: #f87171;
    margin-top: 6px;
    text-align: left;
}

.input-validation-error {
    border-color: rgba(239, 68, 68, 0.5) !important;
}

.input-validation-error:focus {
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.2) !important;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .login-card,
    .register-card {
        padding: 35px 24px;
        border-radius: 20px;
    }
    .login-title {
        font-size: 22px;
    }
    .form-row-grid {
        grid-template-columns: 1fr;
    }
}

/* Glassmorphic OTP Modal Overlay */
.otp-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(7, 9, 19, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.otp-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.otp-modal-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 35px 30px;
    width: 90%;
    max-width: 440px;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.otp-modal-overlay.active .otp-modal-card {
    transform: scale(1);
}

.otp-modal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-gradient);
}

.otp-input-custom {
    letter-spacing: 12px;
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    padding: 14px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: var(--text-primary);
    width: 100%;
    outline: none;
    transition: all 0.3s ease;
}

.otp-input-custom:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 4px var(--accent-glow);
}


