/* ============================================
   RestaurangAI - Login Page Styles (COMPACT VERSION)
   ============================================ */

/* Login Page Layout */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 20px 15px;  /* Reducerad padding */
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
}

/* Background Gradient */
.background-gradient {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #050508 0%, #0c0c10 100%);
    z-index: -2;
}

.background-gradient::before {
    content: '\';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.1);
    }
}

/* Container - Mindre max-width */
.login-container {
    width: 100%;
    max-width: 420px;  /* Reducerad från 500px */
    z-index: 1;
}

/* Header - Kompaktare */
.login-header {
    text-align: center;
    margin-bottom: 20px;  /* Reducerad från 40px */
}

.login-header .logo h1 {
    font-size: 2.25rem;  /* Reducerad från 3rem */
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;  /* Reducerad från 10px */
}

.tagline {
    color: var(--text-secondary);
    font-size: 1rem;  /* Reducerad från 1.1rem */
    font-weight: 300;
}

/* Login Card - Kompaktare padding */
.login-card,
.success-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 16px;  /* Reducerad från 20px */
    padding: 30px 25px;  /* Reducerad från 50px 40px */
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;  /* Reducerad från 30px */
}

.card-icon,
.success-icon {
    font-size: 2.5rem;  /* Reducerad från 3rem */
    text-align: center;
    margin-bottom: 15px;  /* Reducerad från 20px */
}

.login-card h2,
.success-card h2 {
    text-align: center;
    font-size: 1.75rem;  /* Reducerad från 2rem */
    font-weight: 600;
    margin-bottom: 8px;  /* Reducerad från 10px */
    color: var(--text-primary);
}

.subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 25px;  /* Reducerad från 40px */
    line-height: 1.5;
    font-size: 0.95rem;
}

/* Form - Kompaktare spacing */
.login-form {
    margin-bottom: 20px;  /* Reducerad från 30px */
}

.form-group {
    margin-bottom: 20px;  /* Reducerad från 30px */
}

.form-group label {
    display: block;
    margin-bottom: 8px;  /* Reducerad från 10px */
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.9rem;
}

.form-help {
    display: block;
    margin-top: 6px;  /* Reducerad från 8px */
    color: var(--text-secondary);
    font-size: 0.8rem;  /* Reducerad från 0.85rem */
    line-height: 1.4;
}

/* Buttons */
.login-card .btn-primary,
.success-card .btn-secondary {
    width: 100%;
}

/* Info Box - Kompaktare */
.info-box {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 10px;  /* Reducerad från 12px */
    padding: 15px;  /* Reducerad från 20px */
    display: flex;
    gap: 12px;  /* Reducerad från 15px */
    align-items: flex-start;
}

.info-box .icon {
    font-size: 1.35rem;  /* Reducerad från 1.5rem */
    flex-shrink: 0;
}

.info-box .content {
    flex: 1;
}

.info-box strong {
    display: block;
    color: var(--text-primary);
    margin-bottom: 4px;
    font-size: 0.95rem;
}

.info-box p {
    color: var(--text-secondary);
    font-size: 0.85rem;  /* Reducerad från 0.9rem */
    margin-bottom: 8px;
}

.link-gradient {
    color: #f97316;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.link-gradient:hover {
    color: #6366f1;
}

/* Success Card */
.success-card {
    border-color: rgba(16, 185, 129, 0.3);
}

.success-message {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 25px;  /* Reducerad från 40px */
    line-height: 1.6;
    font-size: 0.95rem;
}

.success-message strong {
    color: #f97316;
}

.success-steps {
    margin-bottom: 20px;  /* Reducerad från 30px */
}

.step {
    display: flex;
    align-items: center;
    gap: 15px;  /* Reducerad från 20px */
    padding: 12px 0;  /* Reducerad från 15px */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.step:last-child {
    border-bottom: none;
}

.step-number {
    width: 35px;  /* Reducerad från 40px */
    height: 35px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.step p {
    color: var(--text-primary);
    margin: 0;
    font-size: 0.95rem;
}

/* Footer - Kompaktare */
.login-footer {
    text-align: center;
    padding-top: 15px;  /* Reducerad från 20px */
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 15px;  /* Reducerad från 20px */
    flex-wrap: wrap;
    margin-bottom: 12px;  /* Reducerad från 15px */
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;  /* Reducerad från 0.9rem */
    transition: color 0.3s ease;
}

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

.copyright {
    color: var(--text-secondary);
    font-size: 0.8rem;  /* Reducerad från 0.85rem */
}

/* Error Toast */
.error-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    padding: 14px 20px;  /* Reducerad från 16px 24px */
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    font-size: 0.9rem;
    animation: slideIn 0.3s ease;
}

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

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

/* Responsive - Width based */
@media (max-width: 768px) {
    .login-card,
    .success-card {
        padding: 25px 20px;
    }

    .login-header .logo h1 {
        font-size: 2rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .login-container {
        max-width: 100%;
    }
    
    .login-card,
    .success-card {
        padding: 20px 18px;
    }

    .login-header .logo h1 {
        font-size: 1.85rem;
    }

    .card-icon,
    .success-icon {
        font-size: 2.25rem;
    }

    .step {
        gap: 12px;
    }

    .step-number {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
}

/* For short screens */
@media (max-height: 768px) {
    .login-page {
        padding: 15px;
    }
    
    .login-header {
        margin-bottom: 15px;
    }
    
    .login-card,
    .success-card {
        padding: 22px 25px;
    }
}

@media (max-height: 650px) {
    .login-card,
    .success-card {
        padding: 18px 20px;
    }
    
    .login-header .logo h1 {
        font-size: 1.85rem;
    }
    
    .login-header {
        margin-bottom: 12px;
    }
    
    .tagline {
        font-size: 0.9rem;
    }
    
    .card-icon,
    .success-icon {
        font-size: 2.25rem;
        margin-bottom: 12px;
    }
    
    .subtitle {
        margin-bottom: 18px;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
}
/* Kompaktare form elements och buttons för mindre skärmar */

/* Override för inputs - mindre padding */
input,
textarea,
select {
    width: 100%;
    padding: 12px 16px !important;  /* Reducerad från 16px 20px */
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px !important;  /* Reducerad från 12px */
    color: var(--text-primary);
    font-size: 0.95rem !important;  /* Reducerad från 1rem */
    font-family: 'Poppins', sans-serif;
    transition: all var(--transition-normal);
}

/* Kompaktare buttons */
.btn-primary,
.btn-secondary {
    padding: 13px 24px !important;  /* Reducerad från 16px 30px */
    border: none;
    border-radius: 10px !important;  /* Reducerad från 12px */
    font-size: 0.95rem !important;  /* Reducerad från 1rem */
    font-weight: var(--font-semibold);
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all var(--transition-normal);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

@media (max-width: 768px) {
    input,
    textarea,
    select {
        padding: 11px 14px !important;
        font-size: 0.9rem !important;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 12px 20px !important;
        font-size: 0.9rem !important;
    }
}

@media (max-height: 768px) {
    input,
    textarea,
    select {
        padding: 10px 14px !important;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 11px 20px !important;
    }
}
