/* ModernLogin.css - Stylesheet for the redesigned ERP login page */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background: radial-gradient(circle at 10% 20%, rgba(216, 241, 230, 0.46) 0.1%, rgba(233, 226, 238, 0.46) 90.1%),
                linear-gradient(135deg, #e0e7ff 0%, #f5f3ff 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
}

/* Background blob animations for rich aesthetics */
.bg-blob {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.5;
    animation: float-blob 15s infinite alternate ease-in-out;
}

.bg-blob-1 {
    background-color: #c7d2fe;
    top: -100px;
    left: -100px;
}

.bg-blob-2 {
    background-color: #ddd6fe;
    bottom: -150px;
    right: -100px;
    animation-delay: 3s;
}

@keyframes float-blob {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 30px) scale(1.1); }
}

/* Main Layout Structure */
.login-container {
    width: 90%;
    max-width: 1200px;
    height: 680px;
    display: flex;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    animation: fade-in 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fade-in {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Left Hero Banner Panel */
.login-hero {
    flex: 1.1;
    position: relative;
    background: linear-gradient(135deg, #1e1b4b 0%, #311042 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px;
    color: #ffffff;
    overflow: hidden;
}

.login-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../Images/LoginPage/modern_campus_erp_login_banner.jpg') no-repeat center center;
    background-size: cover;
    opacity: 0.35;
    mix-blend-mode: overlay;
    z-index: 1;
}

.login-hero-header {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.logo-icon svg {
    width: 22px;
    height: 22px;
    fill: #ffffff;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.5px;
    background: linear-gradient(to right, #ffffff, #e0e7ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.login-hero-content {
    position: relative;
    z-index: 2;
    margin-top: auto;
    margin-bottom: auto;
    max-width: 440px;
    animation: slide-up 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slide-up {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-hero-title {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.login-hero-desc {
    font-size: 16px;
    color: #cbd5e1;
    line-height: 1.6;
    font-weight: 300;
}

.login-hero-features {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
}

.feature-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.08);
    padding: 6px 14px;
    border-radius: 99px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-tag svg {
    width: 14px;
    height: 14px;
    fill: #a855f7;
}

/* Right Login Form Panel */
.login-form-panel {
    flex: 0.9;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 56px;
    position: relative;
}

.login-form-header {
    margin-bottom: 32px;
}

.login-form-header img.effia-logo {
    height: 48px;
    margin-bottom: 24px;
    object-fit: contain;
}

.login-form-title {
    font-size: 26px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
}

.login-form-subtitle {
    font-size: 14px;
    color: #64748b;
    font-weight: 400;
}

.form-group {
    position: relative;
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #475569;
    margin-bottom: 8px;
}

.input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    pointer-events: none;
    transition: color 0.25s;
}

.input-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.LoginTextBox {
    width: 100% !important;
    height: 48px !important;
    padding: 12px 16px 12px 48px !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    color: #1e293b !important;
    background-color: #f8fafc !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 12px !important;
    transition: all 0.25s ease-in-out !important;
    outline: none !important;
}

.LoginTextBox:focus {
    background-color: #ffffff !important;
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1) !important;
}

.LoginTextBox:focus + .input-icon {
    color: #6366f1;
}

/* Password Toggle Icon */
.password-toggle {
    position: absolute;
    right: 16px;
    cursor: pointer;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.25s;
    user-select: none;
}

.password-toggle:hover {
    color: #475569;
}

.password-toggle svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Validation styling */
.validator-error {
    display: block;
    font-size: 12px;
    color: #ef4444;
    margin-top: 4px;
    font-weight: 400;
}

/* Action row */
.action-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
    margin-bottom: 24px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #475569;
    cursor: pointer;
}

.remember-me input[type="checkbox"] {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1.5px solid #cbd5e1;
    accent-color: #6366f1;
    cursor: pointer;
}

.ForgotPassword {
    font-size: 14px;
    font-weight: 500;
    color: #6366f1;
    text-decoration: none;
    transition: color 0.25s;
}

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

/* Submit Button */
.login-btn-container {
    width: 100%;
}

.login-btn-container input[type="submit"],
.login-btn-container button {
    width: 100% !important;
    height: 48px !important;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 12px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
    cursor: pointer !important;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2) !important;
    transition: all 0.25s ease-in-out !important;
}

.login-btn-container input[type="submit"]:hover,
.login-btn-container button:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.3) !important;
    filter: brightness(1.05) !important;
}

.login-btn-container input[type="submit"]:active,
.login-btn-container button:active {
    transform: translateY(1px) !important;
}

/* Footer Section */
.login-footer {
    margin-top: auto;
    border-top: 1px solid #f1f5f9;
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: #94a3b8;
    width: 100%;
}

.login-footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
}

.login-footer-links a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.25s;
    font-weight: 500;
}

.login-footer-links a:hover {
    color: #4f46e5;
}

.login-footer-credits {
    font-size: 12px;
    color: #64748b;
    text-align: center;
}

/* AJAX Toolkit/WUCMessage overrides for modern aesthetics */
.modalBackground {
    background-color: rgba(15, 23, 42, 0.5) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    z-index: 10000 !important;
}

div[id$="pnlMessageBox"] {
    background: #ffffff !important;
    border: none !important;
    border-radius: 20px !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
    overflow: hidden !important;
    max-width: 450px !important;
    width: 90% !important;
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 10001 !important;
    animation: modal-pop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards !important;
}

@keyframes modal-pop {
    from { opacity: 0; transform: translate(-50%, -45%) scale(0.95); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* Style the message table elements */
div[id$="pnlMessageBox"] table {
    border: none !important;
    background-color: #ffffff !important;
    border-collapse: collapse !important;
    width: 100% !important;
}

div[id$="pnlMessageBox"] td[id$="tdMessageCaption"] {
    background: linear-gradient(135deg, #4f46e5, #7c3aed) !important;
    height: 48px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    text-align: center !important;
    vertical-align: middle !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

div[id$="pnlMessageBox"] span[id$="lblMessage"] {
    font-family: 'Outfit', sans-serif !important;
    font-size: 15px !important;
    color: #334155 !important;
    line-height: 1.5 !important;
}

div[id$="pnlMessageBox"] input[type="submit"] {
    background: #4f46e5 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 8px 24px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    box-shadow: 0 2px 4px rgba(99, 102, 241, 0.1) !important;
    margin-bottom: 16px !important;
}

div[id$="pnlMessageBox"] input[type="submit"]:hover {
    background: #4338ca !important;
    transform: translateY(-1px) !important;
}

/* Responsive styling */
@media (max-width: 992px) {
    .login-container {
        height: auto;
        min-height: 600px;
        flex-direction: column;
        width: 95%;
        max-width: 500px;
    }
    
    .login-hero {
        display: none;
    }
    
    .login-form-panel {
        flex: 1;
        padding: 40px 24px;
    }
    
    .login-form-header img.effia-logo {
        margin-bottom: 16px;
    }
    
    .login-footer {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        margin-top: 32px;
    }
}
