/*
 * Modern Login Page V2 - Clean Corporate Style
 * Inspired by modern SaaS login pages
 */

/* ========================================
   Page Background - Light Gradient
   ======================================== */
body.login-page {
    background: linear-gradient(135deg, #e0e7ff 0%, #f3e8ff 50%, #fce7f3 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.fix-header.fix-sidebar {
    background: linear-gradient(135deg, #e0e7ff 0%, #f3e8ff 50%, #fce7f3 100%);
}

/* ========================================
   Main Login Container
   ======================================== */
.login-wrapper {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding: 20px;
}

/* Logo Container with Gradient Background */
.login-brand {
    text-align: center;
    margin-bottom: 30px;
}

.login-brand-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
    padding: 15px;
}

.login-brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.login-brand-title {
    font-size: 28px;
    font-weight: 700;
    color: #5b21b6;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.login-brand-subtitle {
    font-size: 14px;
    color: #7c3aed;
    font-weight: 500;
}

.login-brand-subtitle::before {
    content: '✨ ';
}

/* ========================================
   Login Card
   ======================================== */
.login-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.login-card-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-card-greeting {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.login-card-greeting::before {
    content: '👋 ';
}

.login-card-description {
    font-size: 14px;
    color: #64748b;
    font-weight: 400;
}

/* ========================================
   Form Inputs with Icons
   ======================================== */
.form-group-modern {
    margin-bottom: 20px;
}

.form-label-modern {
    display: flex;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 8px;
}

.form-label-modern::before {
    margin-right: 6px;
    font-size: 14px;
}

.form-label-modern.label-email::before {
    content: '🆔';
}

.form-label-modern.label-password::before {
    content: '🔒';
}

.form-control-modern {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 400;
    color: #1e293b;
    transition: all 0.3s ease;
    box-sizing: border-box;
    background: #ffffff;
}

.form-control-modern::placeholder {
    color: #94a3b8;
}

.form-control-modern:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

/* Password Field with Forgot Link */
.password-group {
    position: relative;
}

.password-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.forgot-link {
    font-size: 13px;
    color: #6366f1;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.forgot-link:hover {
    color: #4f46e5;
    text-decoration: none;
}

/* ========================================
   Sign In Button - Gradient
   ======================================== */
.btn-signin-modern {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 100%);
    border: none;
    border-radius: 10px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
    margin-top: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-signin-modern::before {
    content: '🚀';
}

.btn-signin-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(99, 102, 241, 0.4);
}

.btn-signin-modern:active {
    transform: translateY(0);
}

/* ========================================
   Sign Up Link
   ======================================== */
.signup-link-container {
    text-align: center;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #f1f5f9;
}

.signup-text {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

.signup-link {
    color: #6366f1;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.signup-link::before {
    content: '✨ ';
}

.signup-link:hover {
    color: #4f46e5;
    text-decoration: none;
}

/* ========================================
   Footer
   ======================================== */
.login-footer {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
}

.login-copyright {
    font-size: 13px;
    color: #7c3aed;
    font-weight: 500;
}

.login-copyright::after {
    content: ' 💜';
}

/* ========================================
   Alert Messages
   ======================================== */
.alert-modern {
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideDown 0.3s ease-out;
}

.alert-modern-success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    border-left: 4px solid #10b981;
}

.alert-modern-danger {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #7f1d1d;
    border-left: 4px solid #ef4444;
}

.alert-modern-info {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
    border-left: 4px solid #3b82f6;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   Install App Button
   ======================================== */
.btn-install-modern {
    width: 100%;
    padding: 12px 24px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    border-radius: 10px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-install-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 576px) {
    .login-card {
        padding: 30px 25px;
    }
    
    .login-brand-title {
        font-size: 24px;
    }
    
    .login-card-greeting {
        font-size: 20px;
    }
}

/* ========================================
   Loading State
   ======================================== */
.btn-signin-modern.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn-signin-modern.loading::before {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ========================================
   Hide Old Elements
   ======================================== */
.unix-login .login-logo {
    display: none;
}

body.fix-header::before,
body.fix-header::after {
    display: none;
}

