/* Additional Login Page Enhancements */

/* Pastel Coffee & Cream theme colors - Aligned with global theme */
:root {
    --coffee-dark: var(--primary-brown-darker, #6B4423);
    --coffee-medium: var(--primary-brown, #A67C52);
    --coffee-light: var(--accent-brown-light, #C9A882);
    --cream-light: var(--secondary-cream, #FFF8E7);
    --cream-medium: var(--secondary-cream-dark, #F5EBE0);
    --cream-dark: var(--border-color, #D7C4B0);
}

/* Login container with coffee shop image */
#login-container {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Elegant title styling */
.system-title {
    animation: fadeInDown 1s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Login form animation */
.login-form {
    animation: fadeInRight 1s ease-out;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Enhanced input styling */
.form-group input {
    background-color: #FFFFFF;
}

.form-group input:hover {
    border-color: var(--coffee-medium);
    background-color: var(--cream-light);
}

/* Button ripple effect */
.form-actions button {
    position: relative;
    overflow: hidden;
}

.form-actions button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.form-actions button:active::after {
    width: 300px;
    height: 300px;
}

/* Logo/Brand area on image - Removed icon */

/* Decorative elements */
.login-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50px;
    width: 100px;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(166, 124, 82, 0.08));
    pointer-events: none;
}

/* Input focus effect */
.form-group {
    position: relative;
}

/* Required field indicator */
.form-group label span {
    color: #ef4444;
    font-weight: bold;
    margin-left: 2px;
}

/* Input validation states */
.form-group input:invalid:not(:placeholder-shown) {
    border-color: #ef4444;
    background-color: #fef2f2;
}

.form-group input:valid:not(:placeholder-shown) {
    border-color: #10b981;
    background-color: #f0fdf4;
}

.form-group input:focus:invalid {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-group input:focus:valid {
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* Small helper text */
.form-group small {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #999;
}

/* Empty input warning */
.form-group input:required:invalid:focus {
    border-color: #f59e0b;
}

/* Disable button when form is invalid */
.form-actions button:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.form-actions button:disabled:hover {
    transform: none;
    box-shadow: none;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label {
    transform: translateY(-25px);
    font-size: 0.85rem;
    color: var(--coffee-medium);
}

/* Footer text in login */
.login-form::after {
    content: '© 2025 Quán Cafe. All rights reserved.';
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: #B5927B;
    font-size: 0.8rem;
    white-space: nowrap;
}
