/* Login Component Styles */
.login-page {
    background:  #0d58c6;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 100px 0;
}

.login-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="%23ffffff08" points="0,1000 1000,0 1000,1000"/></svg>');
    pointer-events: none;
}

.login-container {
    width: 100%;
    max-width: 28rem;
    position: relative;
    z-index: 1;
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 1.5rem;
    padding: 2.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header */
.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2938;
    margin-bottom: 0.5rem;
    background-clip: text;
}

.login-subtitle {
    color: #6b7280;
    font-size: 1rem;
    opacity: 0.8;
}

/* Form */
.login-form {
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: #374151;
    font-weight: 500;
    font-size: 0.875rem;
}

.form-hint {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: #9ca3af;
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: #0d58c6;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.form-input::placeholder {
    color: #9ca3af;
}

/* Password input */
.password-input-wrapper {
    position: relative;
}

.password-input {
    padding-right: 3rem;
}

.password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 0.375rem;
    transition: color 0.2s ease;
}

.password-toggle:hover {
    color: #374151;
}

.password-toggle-icon {
    width: 1.25rem;
    height: 1.25rem;
}

/* Checkbox */
.form-group--checkbox {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.checkbox-input {
    width: 1rem;
    height: 1rem;
    border: 2px solid #d1d5db;
    border-radius: 0.25rem;
    background: white;
    cursor: pointer;
    margin-right: 0.5rem;
    appearance: none;
    position: relative;
    transition: all 0.2s ease;
}

.checkbox-input:checked {
    background: #0d58c6;
    border-color: #0d58c6;
}

.checkbox-input:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
}

.checkbox-label {
    font-size: 0.875rem;
    color: #374151;
}

.forgot-link {
    font-size: 0.875rem;
    color: #0d58c6;
    text-decoration: none;
    transition: color 0.2s ease;
}

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

/* Login button */
.login-btn {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: #0d58c6;
    color: white;
    border: none;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(102, 126, 234, 0.4);
}

.login-btn:active {
    transform: translateY(0);
}

.login-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-text,
.btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-loading.hidden {
    display: none;
}

.loading-spinner {
    width: 1rem;
    height: 1rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Footer */
.login-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.login-footer p {
    color: #6b7280;
    font-size: 0.875rem;
}

.register-link {
    color: #0d58c6;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.register-link:hover {
    color: #5a67d8;
    text-decoration: underline;
}

/* Messages */
.login-error,
.login-success {
    padding: 1rem;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    animation: fadeIn 0.3s ease;
}

.login-error {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.login-success {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.login-success--extended {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.login-success__actions {
    display: flex;
    justify-content: center;
}

.login-success__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.5rem;
    border-radius: 0.75rem;
    background: #0d58c6;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.login-success__link:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 25px -8px rgba(13, 88, 198, 0.5);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Toast notifications */
.toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    background: white;
    border-radius: 0.75rem;
    padding: 1rem 1.5rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    min-width: 300px;
    animation: slideInRight 0.3s ease;
}

.toast--info {
    border-left: 4px solid #0d58c6;
}

.toast--success {
    border-left: 4px solid #0d58c6;
}

.toast--warning {
    border-left: 4px solid #f59e0b;
}

.toast--error {
    border-left: 4px solid #ef4444;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive */
@media (max-width: 640px) {
    .login-card {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }
    
    .demo-buttons {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .social-buttons {
        grid-template-columns: 1fr;
    }
    
    .login-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .login-card {
        padding: 1.5rem 1rem;
    }
    
    .form-group--checkbox {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
} 
