/* Import Inter font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box !important;
}

body {
    background: #f1f5f9 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    min-height: 100vh !important;
    font-family: 'Inter', sans-serif !important;
    padding: 20px !important;
    margin: 0 !important;
    overflow-x: hidden !important;
}

/* Glassmorphism wrapper container */
.login-wrapper {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 28px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
    width: 100% !important;
    max-width: 920px !important;
    animation: fadeIn 0.6s ease-out;
    box-sizing: border-box !important;
}

/* Container split */
.login-container-split {
    display: flex;
    background: #ffffff;
    border-radius: 22px;
    overflow: hidden;
    width: 100%;
}

/* Left Image Side */
.login-image-side {
    flex: 1.1;
    background-image: url('../../images/student-login.png');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 40px;
}

.login-image-side::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.25) 0%, rgba(6, 182, 212, 0.35) 100%);
    z-index: 1;
}

.image-overlay-content {
    position: relative;
    z-index: 2;
    color: #ffffff;
    text-align: left;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 24px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.image-overlay-content h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
}

.image-overlay-content p {
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.5;
}

/* Right Form Side */
.login-form-side {
    flex: 1;
    padding: 8px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #ffffff;
}

/* Logo styling */
.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    gap: 10px;
}

.logo-img {
    width: 170px;
    height: 170px;
    object-fit: contain;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
    display: block;
    vertical-align: top;
}

.logo-text {
    text-align: left;
}

.student-text {
    font-size: 13px;
    font-weight: 700;
    color: #1e1b4b;
    letter-spacing: 2px;
    line-height: 1.1;
}

.portal-text {
    font-size: 21px;
    font-weight: 800;
    color: #1e1b4b;
    letter-spacing: 0.5px;
    line-height: 1.1;
}


h4 {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    padding: 0;
    text-align: center;
}

.subtitle {
    font-size: 14px;
    color: #64748b;
    margin-top: 0;
    margin-bottom: 8px;
    text-align: center;
}

/* Input structures */
.form-group-custom {
    margin-bottom: 6px;
}

.input-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
    text-align: left;
}

.input-group-custom {
    position: relative;
    width: 100%;
}

.input-icon-left {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transition: color 0.2s ease;
}

.input-icon-right {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color 0.2s ease;
}

.input-icon-right:hover {
    color: #4f46e5;
}

.input-group-custom .form-control-custom {
    width: 100%;
    height: 44px;
    padding: 8px 16px 8px 44px;
    border: 1.5px solid #d1d5db;
    border-radius: 10px;
    font-size: 14px;
    color: #1f2937;
    background-color: #fff;
    transition: all 0.2s ease;
    outline: none;
}

.input-group-custom .form-control-custom::placeholder {
    color: #94a3b8;
}

.input-group-custom .form-control-custom:focus {
    border-color: #818cf8;
    box-shadow: 0 0 0 4px rgba(129, 140, 248, 0.18);
}

.input-group-custom:focus-within .input-icon-left {
    color: #4f46e5;
}

/* Forgot password link */
.forgot-link {
    display: block;
    text-align: right;
    font-size: 13px;
    color: #64748b;
    margin-top: 2px;
    margin-bottom: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.forgot-link:hover {
    color: #4f46e5;
    text-decoration: underline;
}

/* Sign In Button */
.btn-signin {
    width: 100%;
    height: 44px;
    background: #4f46e5;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.15);
}

.btn-signin:hover {
    background: #4338ca;
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(79, 70, 229, 0.25);
}

.btn-signin:active {
    transform: translateY(1px);
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 6px 0;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e2e8f0;
}

.divider:not(:empty)::before {
    margin-right: .8em;
}

.divider:not(:empty)::after {
    margin-left: .8em;
}

/* Google Sign In */
.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 44px;
    background: #fff;
    color: #334155;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}



.btn-google img {
    height: 18px;
    width: 18px;
}

/* Bottom Text */
.bottom-text {
    margin-top: 6px;
    font-size: 13.5px;
    color: #64748b;
    text-align: center;
}

.bottom-text a {
    color: #1e1b4b;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s;
}

.bottom-text a:hover {
    color: #4f46e5;
    text-decoration: underline;
}

/* Validation styling */
.validation-errors {
    background: #fee2e2;
    border: 1px solid #fca5a5;
    border-radius: 10px;
    color: #b91c1c;
    padding: 12px;
    font-size: 14px;
    margin-bottom: 16px;
    text-align: left;
}

.validation-errors ul {
    margin-left: 20px;
    margin-bottom: 0;
}

/* Fade in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* Responsive design */
@media (max-width: 900px) {
    body {
        padding: 16px !important;
    }

    .login-wrapper {
        width: 100% !important;
        max-width: 460px !important;
        padding: 6px !important;
        margin: 0 auto !important;
        box-sizing: border-box !important;
    }

    .login-container-split {
        flex-direction: column;
        min-height: auto;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .login-image-side {
        display: none;
    }

    .login-form-side {
        padding: 32px 24px;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}