@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=DM+Sans:wght@400;500;600;700&display=swap');

:root {
    --color-primary: #10B981;
    --color-primary-dark: #059669;
    --color-secondary: #0D9488;
    --color-accent: #F97316;
    --color-bg: #F0FDFA;
    --color-card: #FFFFFF;
    --color-text-dark: #1E293B;
    --color-text-muted: #64748B;
    --shadow-soft: 0 10px 35px rgba(16, 185, 129, 0.12);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'DM Sans', sans-serif; }
body {
    background: linear-gradient(135deg, var(--color-bg) 0%, #E0F2FE 100%);
    color: var(--color-text-dark); min-height: 100vh; display: flex; align-items: center; justify-content: center;
    padding: 20px 5%; position: relative; overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: 'Outfit', sans-serif; font-weight: 700; }
a { text-decoration: none; color: inherit; transition: var(--transition); }

/* BACK BUTTON FLOATING */
.btn-back-float {
    position: absolute; top: 25px; left: 5%; display: flex; align-items: center; gap: 8px;
    background: white; padding: 10px 18px; border-radius: 14px; font-weight: 700; font-size: 13px;
    color: var(--color-secondary); box-shadow: 0 4px 15px rgba(0,0,0,0.06); border: 1px solid rgba(13, 148, 136, 0.15);
}
.btn-back-float:hover { background: var(--color-primary); color: white; transform: translateX(-3px); }

/* MAIN AUTH CARD */
.auth-card {
    background: var(--color-card); border-radius: 28px; width: 100%; max-width: 500px; padding: 40px 35px;
    box-shadow: var(--shadow-soft); border: 1px solid rgba(16, 185, 129, 0.15); text-align: center; position: relative;
    animation: fadeIn 0.4s ease-out;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }

.auth-header { margin-bottom: 25px; }
.auth-logo { width: 64px; height: auto; border-radius: 18px; object-fit: contain; margin-bottom: 12px; box-shadow: 0 6px 18px rgba(16, 185, 129, 0.2); }
.auth-title { font-size: 24px; color: var(--color-text-dark); margin-bottom: 6px; }
.auth-title span { background: linear-gradient(135deg, var(--color-primary-dark), var(--color-secondary)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.auth-desc { font-size: 13.5px; color: var(--color-text-muted); line-height: 1.5; }

/* ALERTS */
.alert-box {
    padding: 14px 18px; border-radius: 14px; margin-bottom: 20px; font-size: 13.5px; font-weight: 700; text-align: left;
    display: flex; align-items: center; gap: 12px; animation: shake 0.3s ease; line-height: 1.4;
}
@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.alert-error { background: #FEE2E2; color: #991B1B; border: 1.5px solid #F87171; }
.alert-success { background: #D1FAE5; color: #065F46; border: 1.5px solid #34D399; }

/* FORM ELEMENTS */
.form-group { margin-bottom: 18px; text-align: left; }
.form-label { display: block; font-size: 13px; font-weight: 700; color: var(--color-text-dark); margin-bottom: 6px; }
.input-wrapper { position: relative; }
.input-wrapper i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: #94A3B8; font-size: 15px; }
.form-input, .form-textarea {
    width: 100%; padding: 13px 16px 13px 44px; border-radius: 14px; border: 1px solid #CBD5E1; background: #F8FAFC;
    font-size: 14px; color: var(--color-text-dark); outline: none; transition: var(--transition);
}
.form-textarea { padding-left: 16px; }
.form-input:focus, .form-textarea:focus {
    border-color: var(--color-primary); background: white; box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
}
.form-helper { font-size: 11px; color: var(--color-text-muted); margin-top: 5px; }

.btn-submit {
    width: 100%; padding: 15px; border-radius: 14px; background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white; font-weight: 700; font-size: 15px; border: none; cursor: pointer; transition: var(--transition);
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.3); display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 10px;
}
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(16, 185, 129, 0.4); }

/* BADGE USER ONBOARDING */
.user-badge {
    background: #F1F5F9; border: 1px solid #E2E8F0; padding: 12px 16px; border-radius: 14px; margin-bottom: 20px;
    display: flex; align-items: center; gap: 12px; text-align: left;
}
.user-badge i { font-size: 24px; color: var(--color-secondary); }
.user-badge div { font-size: 13px; color: var(--color-text-dark); }
.user-badge b { color: var(--color-primary-dark); font-size: 14px; }

.btn-link { font-size: 13px; color: var(--color-text-muted); display: inline-block; margin-top: 20px; font-weight: 600; }
.btn-link:hover { color: var(--color-primary-dark); text-decoration: underline; }

@media (max-width: 480px) {
    .auth-card { padding: 30px 20px; }
    .btn-back-float { top: 15px; left: 4%; padding: 8px 14px; }
}