/* =========================================
   Auth Pages CSS — Login, Register, Dashboard
   getvidfb.com
   ========================================= */

/* ---------- Auth Container ---------- */
.auth-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    padding: 2rem 1rem;
}

.auth-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    animation: authFadeIn 0.5s ease-out;
}

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

.auth-card .logo-link {
    display: block;
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
    text-decoration: none;
}

.auth-card .logo-link span {
    color: #4ea2e3;
}

.auth-card .auth-title {
    text-align: center;
    font-size: 22px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.25rem;
}

.auth-card .auth-subtitle {
    text-align: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 1.75rem;
}

/* ---------- Form Elements ---------- */
.auth-form .form-group {
    margin-bottom: 1.25rem;
    position: relative;
}

.auth-form label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 6px;
    letter-spacing: 0.3px;
}

.auth-form .form-input {
    width: 100%;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: #fff;
    font-size: 15px;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
    font-family: inherit;
    box-sizing: border-box;
}

.auth-form .form-input:focus {
    border-color: #4ea2e3;
    box-shadow: 0 0 0 3px rgba(78, 162, 227, 0.2);
}

.auth-form .form-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* ---------- Submit Button ---------- */
.auth-btn {
    width: 100%;
    padding: 13px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #4ea2e3 0%, #2563eb 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.3s;
    margin-top: 0.5rem;
    font-family: inherit;
}

.auth-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(78, 162, 227, 0.35);
}

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

/* ---------- Alert Messages ---------- */
.auth-alert {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.auth-alert.error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.auth-alert.success {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #86efac;
}

/* ---------- Footer Links ---------- */
.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

.auth-footer a {
    color: #4ea2e3;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.auth-footer a:hover {
    color: #7ec4f7;
}

/* ---------- Dashboard ---------- */
.dash-section {
    min-height: 100vh;
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    padding: 2rem 1rem;
}

.dash-container {
    max-width: 960px;
    margin: 0 auto;
}

.dash-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding: 1.25rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
}

.dash-header .logo-link {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
}

.dash-header .logo-link span {
    color: #4ea2e3;
}

.dash-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dash-header-actions .user-name {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.btn-outline-light {
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: transparent;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    font-family: inherit;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.35);
}

/* ---------- Dashboard Cards ---------- */
.dash-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.dash-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    animation: authFadeIn 0.5s ease-out;
}

.dash-card .card-label {
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.dash-card .card-value {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
}

.dash-card .card-value.small {
    font-size: 16px;
    word-break: break-all;
    font-family: 'Courier New', monospace;
    background: rgba(0, 0, 0, 0.25);
    padding: 10px 12px;
    border-radius: 8px;
    margin-top: 4px;
}

.dash-card .plan-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.plan-badge.free       { background: rgba(107, 114, 128, 0.3); color: #d1d5db; }
.plan-badge.starter    { background: rgba(59, 130, 246, 0.25); color: #93c5fd; }
.plan-badge.pro        { background: rgba(168, 85, 247, 0.25); color: #c4b5fd; }
.plan-badge.business   { background: rgba(234, 179, 8, 0.25); color: #fde047; }

/* API Key Section */
.apikey-section {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}

.apikey-section .card-value.small {
    flex: 1;
    margin-top: 0;
}

.btn-copy, .btn-regen {
    padding: 10px 14px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
    font-family: inherit;
    white-space: nowrap;
}

.btn-copy {
    background: rgba(78, 162, 227, 0.2);
    color: #93c5fd;
}

.btn-copy:hover {
    background: rgba(78, 162, 227, 0.35);
}

.btn-regen {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
}

.btn-regen:hover {
    background: rgba(239, 68, 68, 0.3);
}

/* Usage Bar */
.usage-bar-bg {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 12px;
}

.usage-bar-fill {
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, #4ea2e3 0%, #2563eb 100%);
    transition: width 0.6s ease;
}

.usage-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 6px;
}

/* Full-width card */
.dash-card.full {
    grid-column: 1 / -1;
}

/* Quick Links */
.quick-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.quick-link {
    padding: 10px 20px;
    border-radius: 10px;
    background: linear-gradient(135deg, #4ea2e3 0%, #2563eb 100%);
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: transform 0.2s, box-shadow 0.3s;
}

.quick-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(78, 162, 227, 0.3);
    color: #fff;
}

.quick-link.secondary {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.quick-link.secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.1);
}

@media (max-width: 640px) {
    .auth-card {
        padding: 2rem 1.25rem;
        border-radius: 16px;
    }
    .dash-header {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    .apikey-section {
        flex-direction: column;
    }
    .apikey-section .card-value.small {
        width: 100%;
    }
}
