* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', 'Inter', sans-serif;
}

:root {
    --bg-color: #0f0a08;
    --card-bg: rgba(26, 17, 13, 0.75);
    --border-color: rgba(255, 122, 0, 0.15);
    --accent-orange: #ff7300;
    --accent-orange-glow: rgba(255, 115, 0, 0.5);
    --accent-light: #ffb74d;
    --text-main: #fcf5f2;
    --text-muted: #a89f9a;
    --input-bg: rgba(18, 12, 9, 0.8);
    --input-border: #33241c;
    --btn-grad-start: #351e12;
    --btn-grad-end: #1e1008;
    --btn-border: #4d2b17;
}

body {
    background-color: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: var(--text-main);
    overflow-x: hidden;
    position: relative;
    font-family: 'Inter', sans-serif;
}

/* Ambient Background Lights */
.bg-lights {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.light-orb {
    width: 300px;
    height: 300px;
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    animation: slowOrbitBig 15s infinite ease-in-out alternate;
}

.orb-orange-top {
    width: 300px;
    height: 300px;
    background: #ff5722;
    top: -50px;
    left: -50px;
}

.orb-orange-bottom {
    width: 400px;
    height: 400px;
    background: #e65100;
    bottom: -100px;
    right: -100px;
    animation-delay: -5s;
}

@keyframes drift {
    0% { transform: translate(0px, 0px) scale(1); }
    100% { transform: translate(40px, 40px) scale(1.1); }
}

.app-container {
    background: var(--card-bg);
    width: 380px;
    height: 800px;
    border-radius: 24px;
    position: relative;
    padding: 40px 30px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6), inset 0 0 0 1px var(--border-color);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 10;
    overflow: hidden;
    animation: pageFadeIn 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    transition: all 0.3s ease;
}

/* Decor markers */
.corner-marker {
    position: absolute;
    color: var(--accent-orange);
    opacity: 0.4;
    font-size: 10px;
}
.corner-marker.top-left { top: 20px; left: 20px; }
.corner-marker.top-right { top: 20px; right: 20px; }
.corner-marker.bottom-left { bottom: 20px; left: 20px; }
.corner-marker.bottom-right { bottom: 20px; right: 20px; }

/* Decor Dots */
.dots-accent {
    position: absolute;
    display: flex;
    gap: 8px;
}
.dots-accent span {
    width: 4px;
    height: 4px;
    background-color: var(--accent-orange);
    border-radius: 50%;
    opacity: 0.3;
}
.top-left-row { top: 40px; left: 85px; }
.top-left-col { top: 85px; left: 45px; flex-direction: column; }
.bottom-left-row { bottom: 40px; left: 70px; }
.bottom-right-row { bottom: 40px; right: 70px; }

/* Header components */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 10;
}

.svg-btn {
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    background: transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.back-btn {
    width: 48px;
    height: 48px;
    border: 1.5px solid var(--accent-orange);
    color: var(--text-main);
    font-size: 18px;
    box-shadow: 0 0 10px rgba(255, 115, 0, 0.1);
}
.back-btn:hover {
    background: rgba(255, 115, 0, 0.15);
    box-shadow: 0 0 20px var(--accent-orange-glow);
    transform: translateX(-4px);
    color: #fff;
}

.header-plus-btn {
    width: 30px;
    height: 30px;
    border: 1px solid var(--text-muted);
    color: var(--text-muted);
    font-size: 12px;
}
.header-plus-btn:hover {
    border-color: var(--accent-orange);
    color: var(--accent-orange);
    transform: rotate(90deg);
}

/* Logo container & text */
.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 25px;
    margin-bottom: 35px;
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0px); }
}

.language-text {
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    letter-spacing: 0.5px;
    margin-top: 30px;
    margin-bottom: 5px;
    cursor: pointer;
    transition: color 0.3s;
}
.language-text:hover { color: var(--accent-light); }

/* Form wrapper and transition */
.form-wrapper { position: relative; width: 100%; }

.auth-form {
    display: none;
    flex-direction: column;
    gap: 16px;
    animation: slideUpFade 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.auth-form.active { display: flex; }

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

/* Input Fields */
.input-group {
    position: relative;
    width: 100%;
}

.input-group input {
    width: 100%;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 12px;
    padding: 16px 20px;
    color: #fff;
    font-size: 15px;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
}

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

.input-group input:focus {
    border-color: transparent;
    background: rgba(25, 16, 11, 0.9);
}

.input-focus-border {
    position: absolute;
    bottom: -1px; left: -1px; right: -1px; top: -1px;
    border-radius: 12px;
    pointer-events: none;
    background: linear-gradient(135deg, var(--accent-orange), #ffeb3b);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 1px;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.input-group input:focus ~ .input-focus-border { opacity: 1; }

.input-group i.fa-eye,
.input-group i.fa-eye-slash {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    cursor: pointer;
    font-size: 14px;
    transition: color 0.3s ease;
}

.input-group i.fa-eye:hover,
.input-group i.fa-eye-slash:hover {
    color: var(--accent-orange);
}

/* Green Eye */
.eye-green {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(46, 204, 113, 0.15);
    color: #2ecc71;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(46, 204, 113, 0.3);
}
.eye-green:hover {
    background: #2ecc71;
    color: #fff;
    box-shadow: 0 0 10px rgba(46, 204, 113, 0.5);
}
.eye-green i { position: static; transform: none; color: inherit; }

/* Checkbox */
.form-options {
    display: flex;
    align-items: center;
    margin: -4px 0 8px 0;
}

.checkbox-container {
    display: flex;
    align-items: center;
    color: var(--text-muted);
    font-size: 14px;
    cursor: pointer;
    position: relative;
    padding-left: 28px;
}
.checkbox-container input { position: absolute; opacity: 0; cursor: pointer; height: 0; width: 0; }

.checkmark {
    position: absolute;
    top: -1px;
    left: 0;
    height: 18px;
    width: 18px;
    background-color: transparent;
    border: 1.5px solid var(--text-muted);
    border-radius: 6px; 
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.checkbox-container:hover input ~ .checkmark { border-color: var(--accent-orange); }

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--accent-orange);
    border-color: var(--accent-orange);
    box-shadow: 0 0 8px var(--accent-orange-glow);
}

.checkbox-container input:checked ~ .checkmark:after {
    content: "";
    position: absolute;
    display: block;
    left: 5.5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Submit Button */
.submit-btn {
    width: 100%;
    background: linear-gradient(180deg, var(--btn-grad-start) 0%, var(--btn-grad-end) 100%);
    border: 1px solid var(--btn-border);
    border-radius: 12px;
    padding: 16px;
    color: var(--text-main);
    font-size: 15px;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    position: relative;
    margin-top: 10px;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 115, 0, 0.3), transparent);
    transition: 0.5s;
}

.submit-btn:hover::before { left: 100%; }

.submit-btn:hover {
    color: #fff;
    border-color: var(--accent-orange);
    box-shadow: 0 6px 20px var(--accent-orange-glow);
    background: linear-gradient(180deg, #5c2e14 0%, #30170a 100%);
}

.submit-btn:active { transform: scale(0.98); }

.btn-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.btn-bracket {
    color: #73452b;
    font-weight: 300;
    font-size: 16px;
    transition: color 0.3s;
}

.submit-btn:hover .btn-bracket { color: var(--accent-light); }
.btn-text { letter-spacing: 1.5px; }

/* Form footers */
.form-footer {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 14px;
    margin-top: 10px;
}

.switch-text { color: var(--text-muted); }

.form-footer a {
    color: var(--accent-orange);
    text-decoration: none;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    transition: all 0.3s ease;
}

.form-footer a:hover {
    color: var(--accent-light);
    text-shadow: 0 0 8px var(--accent-orange-glow);
    text-decoration: underline;
}

.forgot-link { font-weight: 400 !important; }

/* Chrome Autofill fix for dark theme */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px var(--input-bg) inset !important;
    -webkit-text-fill-color: white !important;
    border-radius: 12px;
}

/* Global App Page Scale & Fade Animation */
@keyframes pageFadeIn {
    0% { opacity: 0; transform: scale(0.97) translateY(10px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes slowOrbitBig {
    0% { transform: scale(1) translate(0px, 0px) rotate(0deg); }
    33% { transform: scale(1.1) translate(20px, -20px) rotate(10deg); }
    66% { transform: scale(0.9) translate(-10px, 20px) rotate(-10deg); }
    100% { transform: scale(1) translate(0px, 0px) rotate(0deg); }
}
