/* CSS Variables for Safe Areas */
:root {
    --safe-area-top: env(safe-area-inset-top, 0px);
    --safe-area-bottom: env(safe-area-inset-bottom, 0px);
}

/* Login Container */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    padding: 20px;
    padding-top: var(--safe-area-top);
    padding-bottom: var(--safe-area-bottom);
    background: #E5E5E5;
}

.login-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 400px;
    animation: slideDown 0.8s ease-out;
}

/* Logo */
.logo {
    width: 180px;
    height: 70px;
    margin-bottom: 25px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* App Name */
.app-name {
    font-family: 'Unbounded', sans-serif;
    font-size: 3.5rem;
    font-weight: 500;
    color: #282828;
    text-align: center;
    margin-bottom: 40px;
    text-shadow: 9px 2px 2px rgba(40, 40, 40, 0.14);
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* Login Form */
.login-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px 0;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Unbounded', sans-serif;
    font-size: 0.8rem;
    color: #282828;
    cursor: pointer;
}

.remember-me input {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #CECECE;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.remember-me input:checked + .checkmark {
    background-color: #5E7B00;
    border-color: #5E7B00;
}

.remember-me input:checked + .checkmark::after {
    content: '✓';
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.forgot-password {
    font-family: 'Unbounded', sans-serif;
    font-size: 0.8rem;
    color: #5E7B00;
    text-decoration: none;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #4a6100;
    text-decoration: underline;
}

/* Login Button */
.login-button {
    background-color: #ffffff;
    border: none;
    border-radius: 15px;
    padding: 16px;
    font-family: 'Unbounded', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #282828;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.login-button:hover:not(:disabled) {
    background-color: #f5f5f5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.login-button:active:not(:disabled) {
    transform: translateY(0);
}

.login-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Loading Spinner */
.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid #5E7B00;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error Message */
.error-message {
    background-color: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.3);
    border-radius: 10px;
    padding: 12px;
    font-family: 'Unbounded', sans-serif;
    font-size: 0.8rem;
    color: #e74c3c;
    text-align: center;
    margin-top: 10px;
}

/* Demo Credentials */
.demo-credentials {
    margin-top: 30px;
    padding: 15px;
    background-color: rgba(206, 206, 206, 0.3);
    border-radius: 10px;
    text-align: center;
    font-family: 'Unbounded', sans-serif;
    font-size: 0.8rem;
    color: #282828;
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.demo-credentials p {
    margin: 5px 0;
}

.demo-credentials strong {
    color: #5E7B00;
}

/* Animations */
@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 480px) {
    .login-container {
        padding: 15px;
    }
    
    .app-name {
        font-size: 3rem;
        margin-bottom: 30px;
    }
    
    .logo {
        width: 160px;
        height: 60px;
        margin-bottom: 20px;
    }
    
    .login-button {
        padding: 14px;
        height: 50px;
        font-size: 0.95rem;
    }
    
    .input_container {
        padding: 10px 12px;
    }
}

@media (max-width: 360px) {
    .app-name {
        font-size: 2.5rem;
    }
    
    .form-options {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .demo-credentials {
        font-size: 0.75rem;
    }
}

/* Landscape mode for mobile */
@media (orientation: landscape) and (max-height: 500px) {
    .login-content {
        transform: scale(0.85);
    }
    
    .app-name {
        margin-bottom: 20px;
    }
    
    .login-form {
        gap: 15px;
    }
}

/* Safe area support */
@supports (padding: max(0px)) {
    .login-container {
        padding-top: max(20px, var(--safe-area-top));
        padding-bottom: max(20px, var(--safe-area-bottom));
    }
}












/* Minimal Footer Styles */
.minimal-footer {
    background: transparent;
    padding: 20px 15px;
    text-align: center;
    margin-top: 40px;
    animation: fadeInUp 0.8s ease-out 1s both;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.footer-link {
    font-family: 'Unbounded', sans-serif;
    font-size: 0.7rem;
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 4px 0;
}

.footer-link:hover {
    color: #5E7B00;
}

.separator {
    color: #CECECE;
    font-size: 0.7rem;
    user-select: none;
}

.footer-copyright {
    font-family: 'Unbounded', sans-serif;
    font-size: 0.65rem;
    color: #999;
    line-height: 1.4;
}

/* Ещё более минималистичный на мобилках */
@media (max-width: 480px) {
    .minimal-footer {
        padding: 15px 10px;
        margin-top: 30px;
    }
    
    .footer-links {
        gap: 6px;
    }
    
    .footer-link {
        font-size: 0.65rem;
    }
    
    .footer-copyright {
        font-size: 0.6rem;
    }
}

/* В ландшафте делаем ещё меньше */
@media (orientation: landscape) and (max-height: 500px) {
    .minimal-footer {
        padding: 10px 15px;
        margin-top: 20px;
    }
}



