/* ============================================
   GreenBubble Sign In CSS
   Aligned with greenbubble.io website design
============================================ */

/* Auth Page Background */
#auth {
    background: linear-gradient(135deg, #065f46 0%, #059669 50%, #10b981 100%) !important;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 15px;
}

/* Card Container */
#auth .card {
    background: rgba(255, 255, 255, 0.98) !important;
    border-radius: 24px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    max-width: 440px;
    width: 100%;
    backdrop-filter: blur(10px);
}

/* Card Header */
#auth .card-header {
    background: transparent !important;
    border: none;
    padding: 2.5rem 2.5rem 1rem;
    text-align: center;
}

/* Logo */
#auth .card-header img {
    max-width: 140px;
    margin-bottom: 1.25rem;
}

/* Title */
#auth .card-header h2,
#auth .card-header h3,
#auth .card-header h4 {
    color: #111827 !important;
    font-weight: 800;
    font-size: 1.75rem;
    margin: 0 0 0.25rem 0;
    letter-spacing: -0.02em;
}

/* Subtitle */
#auth .card-header p {
    color: #6b7280 !important;
    font-size: 0.9rem;
    margin: 0;
}

/* Card Body */
#auth .card-body {
    padding: 1.5rem 2.5rem 2.25rem;
}

/* Form Groups */
#auth .form-group {
    margin-bottom: 1.5rem;
}

/* Labels */
#auth label {
    color: #374151;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

/* Inputs */
#auth .form-control,
#auth input[type="text"],
#auth input[type="email"],
#auth input[type="password"] {
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    padding: 0.85rem 1rem 0.85rem 2.75rem;
    background: #f9fafb;
    font-size: 0.9rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#auth .form-control:focus,
#auth input:focus {
    border-color: #059669;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.12);
    outline: none;
}

/* Primary Button */
#auth .btn-primary {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 12px;
    padding: 0.875rem 2rem;
    font-weight: 700;
    font-size: 0.95rem;
    width: 100%;
    margin-top: 0.75rem;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.3);
}

#auth .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.4);
    background: linear-gradient(135deg, #047857 0%, #065f46 100%) !important;
}

/* Links */
#auth a {
    color: #059669;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.15s ease;
}

#auth a:hover {
    color: #047857;
}

/* Cloudflare / Alert Box */
#auth .cf-turnstile,
#auth .cloudflare,
#auth .alert {
    border-radius: 12px;
    border: none;
    padding: 1rem 1.25rem;
    margin: 1.25rem 0;
}

/* Alerts */
#auth .alert-success {
    background-color: #ecfdf5;
    color: #065f46;
    border-left: 4px solid #059669;
}

#auth .alert-danger {
    background-color: #fef2f2;
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

/* Checkbox */
#auth .form-check-input {
    width: 18px;
    height: 18px;
    border: 2px solid #d1d5db;
    border-radius: 6px;
}

#auth .form-check-input:checked {
    background-color: #059669;
    border-color: #059669;
}

/* Card Footer */
#auth .card-footer {
    background: transparent !important;
    border-top: 1px solid #e5e7eb;
    padding: 1.5rem 2.5rem;
    text-align: center;
}

#auth .card-footer a {
    margin: 0 0.75rem;
    font-weight: 500;
    color: #059669;
}

/* Social Login Buttons */
#auth .btn-social,
#auth .btn-google,
#auth .btn-facebook {
    border-radius: 12px;
    border: 1.5px solid #e5e7eb;
    padding: 0.75rem;
    font-weight: 600;
    transition: all 0.15s ease;
}

#auth .btn-social:hover,
#auth .btn-google:hover {
    border-color: #059669;
    background: #ecfdf5;
}

/* Mobile */
@media (max-width: 576px) {
    #auth .card {
        margin: 1rem;
        border-radius: 20px;
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
    }

    #auth .card-header {
        padding: 2rem 1.5rem 1rem;
    }

    #auth .card-body {
        padding: 1rem 1.5rem 2rem;
    }

    #auth .card-header h2,
    #auth .card-header h3 {
        font-size: 1.5rem;
    }
}