/* ============================================
   CaterCrew Sign In Page Styles
   Dark theme with cyan accents
   ============================================ */

:root {
    --bg-primary: #0a0e1a;
    --bg-secondary: #0f1629;
    --bg-card: #141b2d;
    --bg-input: #1a2235;
    --text-primary: #ffffff;
    --text-secondary: #8b95a5;
    --text-muted: #5a6478;
    --accent-cyan: #00d4ff;
    --accent-cyan-dark: #00a8cc;
    --accent-purple: #8b5cf6;
    --accent-green: #10b981;
    --border-color: #1e293b;
    --error-color: #ef4444;
    --shadow-glow: 0 0 20px rgba(0, 212, 255, 0.15);
}

/* Container */
/* Container */
.signin-container {
    min-height: 100vh;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    padding: 0 20px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;  /* Changed from flex-start to center */
}

/* Logo Section */
.logo-section {
    text-align: center;
    margin-bottom:0px;
}

.logo-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-purple) 100%);
    border-radius: 24px;
    display: flex;
    align-items:start;
    justify-content: center;
    margin: 0 auto 16px;
    box-shadow: var(--shadow-glow);
}

.logo-emoji {
    font-size: 40px;
}

.app-name {
    font-size: 32px;
    font-weight: 700;
    color: var(--accent-cyan);
    margin: 0;
    letter-spacing: 1px;
}

.tagline {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 8px;
}

/* Sign In Card */
.signin-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 32px 24px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.signin-card h2 {
    color: var(--text-primary);
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 4px 0;
    text-align: center;
}

.card-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
    text-align: center;
    margin-bottom: 24px;
}

/* Form */
.signin-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 14px;
    font-size: 16px;
    z-index: 1;
}

.form-input {
    width: 100%;
    padding: 14px 14px 14px 44px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.toggle-password {
    position: absolute;
    right: 14px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    padding: 4px;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
}

.remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-cyan);
    cursor: pointer;
}

.forgot-link {
    color: var(--accent-cyan);
    font-size: 14px;
    text-decoration: none;
    transition: opacity 0.2s;
}

.forgot-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Sign In Button */
.signin-button {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-cyan-dark) 100%);
    border: none;
    border-radius: 12px;
    color: var(--bg-primary);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.signin-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.4);
}

.signin-button:active:not(:disabled) {
    transform: translateY(0);
}

.signin-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-arrow {
    font-size: 18px;
    transition: transform 0.2s;
}

.signin-button:hover .btn-arrow {
    transform: translateX(4px);
}

/* Spinner */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--bg-primary);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Error Message */
.error-message {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 10px;
    color: var(--error-color);
    font-size: 14px;
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.divider span {
    padding: 0 16px;
    color: var(--text-muted);
    font-size: 13px;
}

/* Social Buttons */
.social-buttons {
    display: flex;
    gap: 12px;
}

.social-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.social-btn:hover:not(:disabled) {
    border-color: var(--accent-cyan);
    background: rgba(0, 212, 255, 0.05);
}

.social-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.social-btn img {
    width: 20px;
    height: 20px;
}

/* Sign Up Section */
.signup-section {
    margin-top: 24px;
    text-align: center;
}

.signup-section p {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 0;
}

.signup-link {
    color: var(--accent-cyan);
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s;
}

.signup-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Footer */
.footer {
    margin-top: 32px;
    text-align: center;
}

.footer p {
    color: var(--text-muted);
    font-size: 12px;
    margin: 0;
}

.footer a {
    color: var(--text-secondary);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 480px) {
    .signin-container {
        padding: 24px 16px;
    }
    
    .signin-card {
        padding: 24px 20px;
    }
    
    .logo-icon {
        width: 70px;
        height: 70px;
    }
    
    .logo-emoji {
        font-size: 36px;
    }
    
    .app-name {
        font-size: 28px;
    }
}

/* Safe area for notch devices */
@supports (padding-top: env(safe-area-inset-top)) {
    .signin-container {
        padding-top: calc(0px + env(safe-area-inset-top));
        padding-bottom: calc(20px + env(safe-area-inset-bottom));
    }
}
