@import url('https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,300;14..32,400;14..32,500;14..32,600;14..32,700;14..32,800&display=swap');
@import url('https://googleapis.com');
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.13.1/font/bootstrap-icons.min.css");

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    background: #FDFDFC;
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
    display: flex;
    flex-direction: column;
}

.input-field {
    transition: all 0.2s ease;
    background: #f0f2f5;
    border: 1px solid transparent;
}

.input-field:focus {
    border-color: #ED1B24;
    background: white;
    box-shadow: 0 0 0 3px rgba(237, 27, 36, 0.08);
    outline: none;
}

.input-field.error {
    border-color: #ED1B24;
    background: #FFF5F5;
}

.signin-btn {
    background: #ED1B24;
    transition: all 0.2s ease;
}

.signin-btn:hover:not(:disabled) {
    background: #C9171F;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(237, 27, 36, 0.3);
}

.signin-btn:active:not(:disabled) {
    transform: scale(0.98);
}

.signin-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.auth-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.auth-card:hover {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

.server-message {
    transition: all 0.3s ease;
}

.server-message-container {
    display: flex;
    align-items: center;
    width: 100%;
}

.server-message-container .close {
    margin-left: auto;
    font-size: 1.5rem;
}

.server-message-container .close:hover {
    font-weight: 900;
}

.server-message.error {
    background: #FFF5F5;
    border-color: #ED1B24;
    color: #C9171F;
}

.server-message.warning {
    background: #fff7dc;
    border-color: #EED202;
    color: #998617;
}

.server-message.success {
    background: #F0FDF4;
    border-color: #22c55e;
    color: #166534;
}

@media (max-width: 768px) {
    .left-panel {
        display: none;
    }

    .card-logo {
        display: block !important;
    }
}

@media (min-width: 769px) {
    .card-logo {
        display: none !important;
    }
}

::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #ED1B24;
    border-radius: 10px;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: #e4e6eb;
}

.forgot-link {
    color: #222;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
}

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

.main-content {
    flex: 1 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    min-height: calc(100vh - 80px);
}

.app-footer {
    flex-shrink: 0;
    width: 100%;
    background: white;
    border-top: 1px solid #e5e7eb;
    padding: 1rem 1.5rem;
}

.app-footer-inner {
    max-width: 72rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .app-footer-inner {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 1.5rem;
    font-size: 0.75rem;
    color: #9ca3af;
}

.footer-links a {
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #ED1B24;
}