/* Custom CSS for AdoDesign Client Portal */

:root {
    --bg-dark: #05050a;
    --card-bg: rgba(13, 14, 24, 0.45);
    --card-border: rgba(255, 255, 255, 0.06);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent-orange: #ec6707;
    --accent-orange-light: #f97316;
    --accent-orange-pale: #ffb885;
    --accent-orange-glow: rgba(236, 103, 7, 0.15);
    --alert-bg: rgba(236, 103, 7, 0.05);
    --alert-border: rgba(236, 103, 7, 0.25);
    --alert-text: #f97316;
    --success-bg: rgba(16, 185, 129, 0.07);
    --success-border: rgba(16, 185, 129, 0.2);
    --success-text: #10b981;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
}

/* Background Glowing Orbs */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.8;
}

.orb-1 {
    top: -10%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(236, 103, 7, 0.1) 0%, rgba(236, 103, 7, 0) 70%);
    filter: blur(80px);
    animation: breathe-orb 15s infinite alternate ease-in-out;
}

.orb-2 {
    bottom: -15%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.07) 0%, rgba(249, 115, 22, 0) 70%);
    filter: blur(80px);
    animation: breathe-orb 18s infinite alternate-reverse ease-in-out;
}

.orb-3 {
    top: 30%;
    left: 40%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, rgba(253, 186, 116, 0.04) 0%, rgba(253, 186, 116, 0) 75%);
    filter: blur(60px);
    animation: breathe-orb 12s infinite alternate ease-in-out;
}

@keyframes breathe-orb {
    0% {
        transform: scale(1) translate(0, 0);
    }
    100% {
        transform: scale(1.1) translate(2%, 2%);
    }
}

/* Container */
.container {
    width: 100%;
    max-width: 520px;
    padding: 24px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* Header */
.header {
    text-align: center;
}

.logo-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.6);
    padding: 8px 20px;
    border-radius: 14px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 
                0 0 20px rgba(236, 103, 7, 0.08);
}

.logo-img {
    height: 38px;
    width: auto;
    display: block;
}

.portal-logo-mark {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.logo-mark-img {
    height: 70px;
    width: auto;
    filter: drop-shadow(0 0 15px rgba(236, 103, 7, 0.25));
}

/* Card */
.portal-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 40px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 
                inset 0 1px 1px rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.portal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-orange), var(--accent-orange-light), var(--accent-orange-pale));
}

/* Badge */
.badge-container {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.portal-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(236, 103, 7, 0.08);
    border: 1px solid rgba(236, 103, 7, 0.2);
    color: var(--accent-orange-pale);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 6px 14px;
    border-radius: 9999px;
}

.badge-icon {
    width: 14px;
    height: 14px;
}

/* Portal Content */
.portal-body {
    text-align: center;
    margin-bottom: 32px;
}

.portal-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.portal-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

/* Info Alert */
.info-alert {
    background: var(--alert-bg);
    border: 1px solid var(--alert-border);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    gap: 12px;
    text-align: left;
    align-items: flex-start;
}

.info-alert-icon {
    color: var(--alert-text);
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 1px;
}

.info-alert-text {
    color: #fbd38d;
    font-size: 0.85rem;
    line-height: 1.5;
}

.info-alert-text strong {
    color: #fff;
    font-weight: 600;
}

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

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.input-label {
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.portal-input {
    background: rgba(2, 4, 15, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px 16px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    width: 100%;
}

.portal-input::placeholder {
    color: #475569;
}

.portal-input:focus {
    outline: none;
    border-color: var(--accent-orange);
    background: rgba(2, 4, 15, 0.7);
    box-shadow: 0 0 0 3px var(--accent-orange-glow);
}

/* Button */
.portal-btn {
    background: linear-gradient(135deg, var(--accent-orange) 0%, var(--accent-orange-light) 50%, var(--accent-orange-pale) 100%);
    background-size: 200% auto;
    border: none;
    border-radius: 12px;
    padding: 14px 24px;
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(236, 103, 7, 0.25);
    margin-top: 8px;
}

.portal-btn:hover {
    background-position: right center;
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(236, 103, 7, 0.4);
}

.portal-btn:active {
    transform: translateY(1px);
}

.portal-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-arrow {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.portal-btn:hover .btn-arrow {
    transform: translateX(3px);
}

/* Feedback message */
.form-feedback {
    display: none;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border-radius: 12px;
    font-size: 0.85rem;
    line-height: 1.5;
    margin-top: 24px;
    text-align: left;
    animation: slide-up-fade 0.3s ease;
}

.form-feedback.success {
    background: var(--success-bg);
    border: 1px solid var(--success-border);
    color: #a7f3d0;
}

.form-feedback.error {
    background: rgba(239, 68, 68, 0.07);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

.feedback-icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 1px;
}

.form-feedback.success .feedback-icon {
    color: var(--success-text);
}

.form-feedback.error .feedback-icon {
    color: #ef4444;
}

/* Footer */
.footer {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-links {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    gap: 8px;
    align-items: center;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: var(--text-primary);
}

.divider {
    color: rgba(255, 255, 255, 0.1);
}

/* Animations */
.animate-fade-in {
    animation: fade-in 0.8s ease forwards;
}

.animate-scale-up {
    animation: scale-up 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-fade-in-delayed {
    opacity: 0;
    animation: fade-in 0.8s ease 0.4s forwards;
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scale-up {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(12px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes slide-up-fade {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading indicator on Button */
.portal-btn.loading {
    color: transparent;
    position: relative;
}

.portal-btn.loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: calc(50% - 10px);
    left: calc(50% - 10px);
    border: 2px solid transparent;
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Responsive adjustment */
@media (max-width: 480px) {
    .portal-card {
        padding: 32px 20px;
        border-radius: 20px;
    }
    
    .portal-title {
        font-size: 1.6rem;
    }
    
    .info-alert {
        padding: 12px;
    }
}
