/* Login Page Styles - Wooden Theme */
.login-body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: linear-gradient(135deg, #8B5E3C 0%, #6B4423 100%);
    font-family: 'Inter', sans-serif;
}

.login-background {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.login-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(212, 199, 163, 0.1) 0%, transparent 55%),
        radial-gradient(circle at 75% 75%, rgba(139, 94, 60, 0.15) 0%, transparent 55%),
        linear-gradient(45deg, rgba(44, 29, 16, 0.2) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(44, 29, 16, 0.2) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(44, 29, 16, 0.2) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(44, 29, 16, 0.2) 75%);
    background-size: 200px 200px, 300px 300px, 40px 40px, 40px 40px, 40px 40px, 40px 40px;
    background-position: 0 0, 0 0, 0 0, 0 20px, 20px -20px, -20px 0px;
}

.login-container {
    width: 100%;
    max-width: 420px;
    z-index: 1;
}

.login-card {
    background: rgba(224, 213, 184, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 40px;
    border: 2px solid rgba(107, 68, 35, 0.3);
    box-shadow: 
        0 20px 40px rgba(44, 29, 16, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        0 0 0 1px rgba(212, 199, 163, 0.1);
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-title {
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #4A311C 30%, #6B4423 70%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 2px 2px 4px rgba(44, 29, 16, 0.2);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.login-subtitle {
    color: #5C3E1F;
    font-size: 1rem;
    margin: 0;
    font-weight: 500;
}

.login-form {
    margin-bottom: 30px;
}

.login-form .form-group {
    margin-bottom: 24px;
}

.login-form .form-label {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: #4A311C;
    margin-bottom: 8px;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.login-form .form-input {
    width: 100%;
    padding: 16px 18px;
    border: 2px solid #B59A6D;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 
        inset 0 2px 4px rgba(44, 29, 16, 0.1),
        0 2px 4px rgba(44, 29, 16, 0.1);
    color: #3C281A;
    font-weight: 500;
}

.login-form .form-input::placeholder {
    color: #8B5E3C;
    opacity: 0.7;
}

.login-form .form-input:focus {
    outline: none;
    border-color: #6B4423;
    box-shadow: 
        0 0 0 4px rgba(107, 68, 35, 0.2),
        inset 0 2px 4px rgba(44, 29, 16, 0.1);
    background: white;
    transform: translateY(-2px);
}

.login-btn {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 12px;
    margin-top: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #6B4423 0%, #4A311C 100%);
    color: #E0D5B8;
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 
        0 6px 20px rgba(44, 29, 16, 0.4),
        inset 0 1px 0 rgba(224, 213, 184, 0.3);
}

.login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(224, 213, 184, 0.2), 
        transparent);
    transition: left 0.6s;
}

.login-btn:hover {
    background: linear-gradient(135deg, #5C3E1F 0%, #3C281A 100%);
    transform: translateY(-3px);
    box-shadow: 
        0 8px 25px rgba(44, 29, 16, 0.5),
        inset 0 1px 0 rgba(224, 213, 184, 0.3);
}

.login-btn:hover::before {
    left: 100%;
}

.login-btn:active {
    transform: scale(0.98);
    box-shadow: 
        0 4px 15px rgba(44, 29, 16, 0.4),
        inset 0 1px 0 rgba(224, 213, 184, 0.3);
}

.login-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(107, 68, 35, 0.1), rgba(74, 49, 28, 0.05));
    border-radius: 12px;
    border: 1px solid rgba(107, 68, 35, 0.2);
    box-shadow: inset 0 2px 4px rgba(44, 29, 16, 0.1);
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
}

.feature-icon {
    font-size: 1.2rem;
    color: #6B4423;
    background: linear-gradient(135deg, rgba(224, 213, 184, 0.8), rgba(212, 199, 163, 0.6));
    padding: 12px;
    border-radius: 12px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(107, 68, 35, 0.3);
    box-shadow: 
        0 4px 8px rgba(44, 29, 16, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.feature-item span {
    font-size: 0.75rem;
    font-weight: 700;
    color: #5C3E1F;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.login-footer {
    text-align: center;
    border-top: 2px solid rgba(107, 68, 35, 0.2);
    padding-top: 20px;
}

.version {
    font-size: 0.8rem;
    color: #8B5E3C;
    margin-bottom: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.support {
    font-size: 0.75rem;
    color: #A07A4E;
    margin: 0;
    font-weight: 500;
}

.support a {
    color: #6B4423;
    text-decoration: none;
    font-weight: 600;
}

.support a:hover {
    text-decoration: underline;
    color: #4A311C;
}

/* Loading state */
.login-btn.loading {
    pointer-events: none;
    opacity: 0.9;
    background: linear-gradient(135deg, #5C3E1F 0%, #3C281A 100%);
}

.login-btn.loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Toast notifications */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.toast {
    background: linear-gradient(135deg, #E0D5B8, #D4C7A3);
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 10px;
    border-left: 6px solid;
    animation: toastSlideIn 0.3s ease-out;
    max-width: 300px;
    border: 2px solid rgba(107, 68, 35, 0.2);
    box-shadow: 0 10px 25px rgba(44, 29, 16, 0.3);
    color: #4A311C;
    font-weight: 600;
}

.toast.success {
    border-left-color: #5C3E1F;
    background: linear-gradient(135deg, #E0D5B8, #D4C7A3);
}

.toast.error {
    border-left-color: #8B5E3C;
    background: linear-gradient(135deg, #E0D5B8, #D4C7A3);
}

.toast.warning {
    border-left-color: #B59A6D;
    background: linear-gradient(135deg, #E0D5B8, #D4C7A3);
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%) rotateY(90deg);
    }
    to {
        opacity: 1;
        transform: translateX(0) rotateY(0);
    }
}

/* Wood grain pattern for form groups on focus */
.form-group:focus-within {
    position: relative;
}

.form-group:focus-within::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent, 
        #B59A6D, 
        #A07A4E, 
        #8B5E3C, 
        #B59A6D, 
        transparent);
    border-radius: 2px;
    animation: woodFlow 2s ease-in-out infinite;
}

@keyframes woodFlow {
    0%, 100% { background-position: -200px 0; }
    50% { background-position: 200px 0; }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .login-background {
        padding: 15px;
    }
    
    .login-card {
        padding: 30px 25px;
        border-radius: 16px;
        border-width: 2px;
    }
    
    .login-title {
        font-size: 1.9rem;
    }
    
    .login-features {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 15px;
    }
    
    .feature-item {
        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
        gap: 15px;
    }
    
    .feature-item span {
        font-size: 0.85rem;
    }
    
    .feature-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .login-card {
        padding: 25px 20px;
        border-width: 2px;
    }
    
    .login-title {
        font-size: 1.7rem;
    }
    
    .login-form .form-input {
        padding: 14px 16px;
        font-size: 0.95rem;
    }
    
    .login-btn {
        padding: 14px;
        font-size: 1rem;
    }
    
    .login-features {
        padding: 12px;
    }
}

/* Dark theme support */
@media (prefers-color-scheme: dark) {
    .login-body {
        background: linear-gradient(135deg, #3C281A 0%, #2C1D10 100%);
    }
    
    .login-card {
        background: rgba(60, 40, 26, 0.95);
        border-color: rgba(139, 94, 60, 0.4);
    }
    
    .login-form .form-input {
        background: rgba(44, 29, 16, 0.9);
        border-color: #5C3E1F;
        color: #E0D5B8;
    }
    
    .login-form .form-label {
        color: #D4C7A3;
    }
    
    .login-subtitle {
        color: #B59A6D;
    }
    
    .feature-item span {
        color: #D4C7A3;
    }
    
    .version {
        color: #A07A4E;
    }
    
    .support {
        color: #8B5E3C;
    }
    
    .support a {
        color: #B59A6D;
    }
    
    .toast {
        background: linear-gradient(135deg, #5C3E1F, #4A311C);
        color: #E0D5B8;
        border-color: rgba(139, 94, 60, 0.4);
    }
}

/* Wood texture animation for subtle effect */
@keyframes woodPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.5; }
}

.login-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg,
        transparent 0%,
        rgba(212, 199, 163, 0.1) 50%,
        transparent 100%
    );
    animation: woodPulse 4s ease-in-out infinite;
    pointer-events: none;
}