/* Split-Screen Login Page Styles */

/* Reset and Base */
* {
    box-sizing: border-box;
}

/* Color Variables */
:root {
    --dark-navy: #1e2a3a;
    --purple: #6b3fa0;
    --orange: #ff6f3c;
    --light-gray: #f8f9fa;
    --white: #ffffff;
    --text-light: #8a9db5;
    --text-dark: #333333;
    --border-gray: #e0e0e0;
}

/* Split Screen Layout */
.split-screen-login {
    display: flex;
    height: 100vh;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--white);
    z-index: 1000;
}

/* Left Sidebar - Updates Section */
.login-sidebar {
    position: relative;
    flex: 0 0 35%;
    max-width: 380px;
    height: 100%;
    background: var(--dark-navy);
    color: var(--white);
}

.login-sidebar-content {
    height: 100%;
    padding: 50px 30px 50px 50px;
    overflow-y: auto;
}

/* Rainbow gradient bar on left edge - purple at top, orange at bottom */
.login-sidebar::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 30px;
    background: linear-gradient(to bottom, 
        #6b3fa0 0%, 
        #9b59b6 25%, 
        #e85285 50%, 
        #ff6f3c 75%, 
        #ffd166 100%
    );
}

.sidebar-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--white);
    margin-top: 7px;
}

/* Update items with separator lines */
.update-item {
    margin-bottom: 0;
    padding: 20px 0;
    border-bottom: 1px solid rgba(138, 157, 181, 0.3);
}

.update-item:first-child {
    padding-top: 0;
}

.update-item:last-child {
    border-bottom: none;
}

.update-header {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.update-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--white);
}

.update-date {
    font-size: 12px;
    color: var(--text-light);
}

.update-description {
    font-size: 12px;
    line-height: 1.5;
    color: var(--text-light);
}

/* Right Form Area */
.login-form-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--light-gray);
    padding: 40px;
    position: relative;
    overflow-y: auto;
}

.login-form-container {
    width: 100%;
    max-width: 380px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 40px;
}

/* Logo */
.login-logo {
    text-align: center;
    margin-bottom: 40px;
}

.login-logo img {
    max-width: 180px;
    height: auto;
}

/* Form Styling */
.login-form-wrapper {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

/* Form Title for password pages */
.form-title {
    text-align: center;
    margin-bottom: 30px;
}

.form-title h4 {
    font-size: 20px;
    font-weight: 600;
    color: var(--purple);
    margin: 0 0 10px 0;
}

.form-subtitle {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* Input Group - Match design exactly */
.form-group {
    position: relative;
    margin-bottom: 12px;
}

.form-group .input-icon {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    font-size: 20px;
    pointer-events: none;
}

.form-group input {
    width: 100%;
    border: none;
    border-bottom: 1px solid #ccc;
    padding: 12px 10px 12px 35px;
    font-size: 14px;
    color: #333;
    background: transparent !important;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    border-bottom-color: var(--purple);
    background: transparent !important;
}

.form-group input::placeholder {
    color: #999;
    font-size: 14px;
}

/* Forgot Password Link */
.forgot-password {
    text-align: right;
    margin-bottom: 20px;
    margin-top: 5px;
    padding-left: 0;
}

.forgot-password a {
    color: var(--purple);
    font-size: 13px;
    text-decoration: none;
}

.forgot-password a:hover {
    text-decoration: underline;
}

/* Buttons Container */
.buttons-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-left: 0;
}

/* Primary LOGIN Button - Gradient with rounded corners */
.btn-login-primary {
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 25px;
    background: linear-gradient(to right, #8e44ad 0%, #e74c3c 50%, #f39c12 100%);
    color: var(--white);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.btn-login-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(142, 68, 173, 0.3);
}

.btn-login-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Secondary SSO Button - White with purple border */
.btn-login-sso {
    width: 100%;
    padding: 14px 20px;
    border: 1px solid var(--purple);
    border-radius: 25px;
    background: var(--white);
    color: var(--purple);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.btn-login-sso:hover:not(:disabled) {
    background: rgba(107, 63, 160, 0.05);
}

.btn-login-sso:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Footer */
.login-footer {
    position: relative;
    margin-top: auto;
    padding-top: 60px;
    text-align: center;
    font-size: 13px;
    color: #666;
}

.login-footer-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 5px;
}

.login-footer-logo {
    height: 22px;
    width: auto;
    vertical-align: middle;
    object-fit: contain;
}

.login-footer-bottom {
    font-size: 12px;
}

.login-footer-bottom a {
    color: var(--purple);
    text-decoration: underline;
    margin: 0 3px;
}

.login-footer-bottom a:hover {
    color: var(--orange);
}

/* Error Messages */
.err-msgs {
    display: block;
    margin-top: 5px;
    font-size: 11px;
    line-height: 1.4;
}

.materialize-red-text {
    color: #f44336;
}

/* Loading State */
.login-loading {
    text-align: center;
    margin-bottom: 20px;
}

.login-loading img {
    max-width: 60px;
}

/* Responsive Design */
@media screen and (max-width: 992px) {
    .split-screen-login {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
        overflow-y: auto;
    }
    
    .login-sidebar {
        flex: 0 0 auto;
        max-width: none;
        min-height: 280px;
        height: auto;
    }

    .login-sidebar-content {
        padding: 30px 25px 30px 45px;
    }
    
    .login-form-area {
        flex: 1 0 auto;
        padding: 40px 30px 40px;
    }
    
    .login-footer {
        padding-top: 30px;
    }
}

@media screen and (max-width: 600px) {
    .login-sidebar-content {
        padding: 25px 20px 25px 40px;
    }
    
    .sidebar-title {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .login-form-area {
        padding: 30px 20px 30px;
    }
    
    .login-logo {
        margin-bottom: 40px;
    }
    
    .login-logo img {
        max-width: 140px;
    }
}

/* Override Materialize default input styles completely */
.split-screen-login input:not([type]),
.split-screen-login input[type=text]:not(.browser-default),
.split-screen-login input[type=password]:not(.browser-default),
.split-screen-login input[type=email]:not(.browser-default) {
    border: none !important;
    border-bottom: 1px solid #ccc !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    height: auto !important;
    margin: 0 !important;
    padding: 12px 10px 12px 35px !important;
    background-color: transparent !important;
    background: transparent !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.split-screen-login input:focus:not([readonly]) {
    border: none !important;
    border-bottom: 1px solid var(--purple) !important;
    box-shadow: none !important;
    outline: none !important;
    background-color: transparent !important;
    background: transparent !important;
}

.split-screen-login input:valid,
.split-screen-login input:invalid {
    box-shadow: none !important;
    background-color: transparent !important;
    background: transparent !important;
}

/* Remove autofill background completely */
.split-screen-login input:-webkit-autofill,
.split-screen-login input:-webkit-autofill:hover,
.split-screen-login input:-webkit-autofill:focus,
.split-screen-login input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #f8f9fa inset !important;
    box-shadow: 0 0 0 1000px #f8f9fa inset !important;
    -webkit-text-fill-color: #333 !important;
    transition: background-color 5000s ease-in-out 0s !important;
}

/* Force no background on all states */
.split-screen-login .form-group input,
.split-screen-login .form-group input:focus,
.split-screen-login .form-group input:active,
.split-screen-login .form-group input:hover {
    background: transparent !important;
    background-color: transparent !important;
}

.split-screen-login .input-field {
    margin: 0 !important;
}

.split-screen-login label {
    display: none !important;
}
