/* Modern Login Page Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.login-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.login-container {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* Left Side - Branding */
.login-branding {
    flex: 1;
    background: linear-gradient(135deg, #0C73AF 0%, #0a5d8a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    color: white;
    position: relative;
    overflow: hidden;
}

.login-branding::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.branding-content {
    position: relative;
    z-index: 2;
    max-width: 500px;
    text-align: center;
}

.logo-wrapper {
    margin-bottom: 40px;
}

.brand-logo {
    max-width: 180px;
    height: auto;
    filter: brightness(0) invert(1);
}

.brand-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.welcome-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: white;
}

.welcome-subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 50px;
    font-weight: 400;
}

.branding-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 40px;
}

.feature-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 1rem;
    color: rgba(255,255,255,0.95);
}

.feature-item i {
    font-size: 1.3rem;
    color: rgba(255,255,255,0.9);
}

/* Right Side - Login Form */
.login-form-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: #ffffff;
    position: relative;
}

.form-container {
    width: 100%;
    max-width: 450px;
    animation: fadeInUp 0.6s ease-out;
}

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

.form-header {
    text-align: center;
    margin-bottom: 40px;
}

.form-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 8px;
}

.form-header p {
    font-size: 0.95rem;
    color: #718096;
    font-weight: 400;
}

/* Alerts */
.alert {
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 24px;
    border: none;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-danger {
    background: #fee;
    color: #c53030;
    border-left: 4px solid #c53030;
}

.alert-success {
    background: #f0fff4;
    color: #22543d;
    border-left: 4px solid #48bb78;
}

.alert i {
    margin-right: 10px;
}

.btn-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    opacity: 0.5;
    cursor: pointer;
    margin-left: auto;
    padding: 0;
    width: 20px;
    height: 20px;
}

.btn-close:hover {
    opacity: 1;
}

/* Form Groups */
.form-group-modern {
    margin-bottom: 24px;
    position: relative;
}

.form-label-modern {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 10px;
}

.form-label-modern i {
    color: #0C73AF;
    font-size: 1rem;
}

.form-input-modern {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    background: #ffffff;
    color: #1a202c;
    transition: all 0.3s ease;
    outline: none;
}

.form-input-modern:focus {
    border-color: #0C73AF;
    box-shadow: 0 0 0 3px rgba(12, 115, 175, 0.1);
}

.form-input-modern::placeholder {
    color: #a0aec0;
}

.form-group-modern.focused .form-input-modern {
    border-color: #0C73AF;
}

/* Password Input Wrapper */
.password-input-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #718096;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.password-toggle:hover {
    color: #0C73AF;
}

.password-toggle i {
    font-size: 1.1rem;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    font-size: 0.9rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
}

.remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #0C73AF;
}

.remember-me label {
    color: #4a5568;
    cursor: pointer;
    user-select: none;
}

.forgot-link {
    color: #0C73AF;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.forgot-link:hover {
    color: #0a5d8a;
    text-decoration: underline;
}

/* Login Button */
.btn-login {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #0C73AF 0%, #0a5d8a 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(12, 115, 175, 0.3);
    margin-bottom: 24px;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(12, 115, 175, 0.4);
}

.btn-login:active {
    transform: translateY(0);
}

.btn-login i {
    font-size: 1rem;
    transition: transform 0.3s;
}

.btn-login:hover i {
    transform: translateX(4px);
}

/* Demo Buttons */
.demo-buttons {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #e2e8f0;
}

.demo-label {
    font-size: 0.85rem;
    color: #718096;
    margin-bottom: 12px;
    text-align: center;
}

.demo-btn-group {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-demo {
    padding: 10px 18px;
    border: 2px solid #e2e8f0;
    background: white;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #4a5568;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.btn-demo:hover {
    border-color: #0C73AF;
    color: #0C73AF;
    background: #f7fafc;
}

.btn-demo i {
    font-size: 0.9rem;
}

/* Form Footer */
.form-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #e2e8f0;
}

.register-text {
    font-size: 0.9rem;
    color: #718096;
    margin: 0;
}

.register-link {
    color: #0C73AF;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.register-link:hover {
    color: #0a5d8a;
    text-decoration: underline;
}

/* Copyrights */
.copyrights {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
}

.copyrights p {
    font-size: 0.8rem;
    color: #a0aec0;
    margin: 0;
}

.developer-name {
    color: #0C73AF;
    font-weight: 600;
}

/* Dark Mode Support */
.dark-mode .login-form-wrapper {
    background: #1a202c;
}

.dark-mode .form-header h2 {
    color: #f7fafc;
}

.dark-mode .form-header p {
    color: #cbd5e0;
}

.dark-mode .form-label-modern {
    color: #cbd5e0;
}

.dark-mode .form-input-modern {
    background: #2d3748;
    border-color: #4a5568;
    color: #f7fafc;
}

.dark-mode .form-input-modern:focus {
    border-color: #0C73AF;
    background: #2d3748;
}

.dark-mode .form-input-modern::placeholder {
    color: #718096;
}

.dark-mode .remember-me label {
    color: #cbd5e0;
}

.dark-mode .register-text {
    color: #a0aec0;
}

.dark-mode .demo-label {
    color: #a0aec0;
}

.dark-mode .btn-demo {
    background: #2d3748;
    border-color: #4a5568;
    color: #cbd5e0;
}

.dark-mode .btn-demo:hover {
    background: #374151;
    border-color: #0C73AF;
    color: #0C73AF;
}

.dark-mode .form-footer {
    border-top-color: #4a5568;
}

.dark-mode .demo-buttons {
    border-top-color: #4a5568;
}

/* Responsive Design */
@media (max-width: 968px) {
    .login-container {
        flex-direction: column;
    }

    .login-branding {
        padding: 40px 30px;
        min-height: 300px;
    }

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

    .welcome-title {
        font-size: 1.8rem;
    }

    .welcome-subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .branding-features {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        margin-top: 20px;
    }

    .feature-item {
        font-size: 0.9rem;
    }

    .login-form-wrapper {
        padding: 30px 20px;
    }

    .form-container {
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .login-branding {
        padding: 30px 20px;
        min-height: 250px;
    }

    .brand-title {
        font-size: 1.5rem;
    }

    .welcome-title {
        font-size: 1.5rem;
    }

    .form-header h2 {
        font-size: 1.5rem;
    }

    .demo-btn-group {
        flex-direction: column;
    }

    .btn-demo {
        width: 100%;
        justify-content: center;
    }
}

/* Legacy Support - Keep old classes for backward compatibility */
.form-group-material {
    position: relative;
    margin-bottom: 30px;
}

input.input-material {
    width: 100%;
    border: none;
    border-bottom: 1px solid #eee;
    padding: 10px 0;
    color: #868e96;
    font-weight: 300;
}

input.input-material:focus {
    border-color: #0C73AF;
    outline: none;
}

input.input-material~label.label-material {
    color: #aaa;
    position: absolute;
    top: 14px;
    left: 0;
    cursor: text;
    transition: all .2s;
    font-weight: 300;
}

input.input-material~label.label-material.active {
    font-size: 0.8em;
    top: -10px;
    color: #0C73AF;
}
