/**
 * NeoxPay - Register Stylesheet
 * * 1. Reset & Variables
 * 2. Base & Typography
 * 3. Background & Effects
 * 4. Layout & Containers
 * 5. Components (Inputs, Buttons, Progress, SweetAlert)
 * 6. Responsive
 */

/* 1. Reset & Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

:root {
    /* ⚡ Nova Paleta Laranja/Gradiente */
    --accent: #FF5722; 
    --accent-hover: #E64A19;
    --grad-start: #F23F36; /* Vermelho/Laranja */
    --grad-end: #F6A90A;   /* Amarelo/Ouro */
    
    --bg-body: #010102;
    --white: #ffffff;
    --white-80: rgba(255, 255, 255, 0.8);
    --white-60: rgba(255, 255, 255, 0.6);
    --white-40: rgba(255, 255, 255, 0.4);
    
    --success: #30D158;
    --danger: #FF453A;
    --warning: #FFD60A;
    
    --glass-bg: rgba(25, 25, 30, 0.25);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-highlight: rgba(255, 255, 255, 0.15);
    --glass-shadow: 0 15px 50px rgba(0, 0, 0, 0.8);
    --ease-apple: cubic-bezier(0.16, 1, 0.3, 1);
}

/* 2. Base & Typography */
html, body {
    overflow-x: hidden; 
    max-width: 100vw;
}

body { 
    font-family: 'Inter', sans-serif; 
    background: var(--bg-body); 
    color: var(--white); 
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 20px 0;
    -webkit-font-smoothing: antialiased;
    
    /* Anti-Selection Lock */
    -webkit-user-select: none; 
    -moz-user-select: none; 
    -ms-user-select: none; 
    user-select: none; 
    -webkit-user-drag: none; 
    -webkit-touch-callout: none;
}

h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 35px;
    color: var(--white);
    letter-spacing: -0.5px;
}

.logo {
    font-family: 'Poppins', sans-serif;
    font-size: 32px;
    font-weight: 800;
    color: var(--white);
    text-decoration: none;
    display: inline-block;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.logo span {
    color: var(--accent);
}

/* 3. Background & Effects */
.ambient-light {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.orb-1 {
    position: absolute;
    top: -15%;
    left: 10%;
    width: 900px;
    height: 900px;
    background: radial-gradient(circle, rgba(242, 63, 54, 0.15) 0%, transparent 60%);
    filter: blur(110px);
    border-radius: 50%;
    will-change: transform;
    animation: float 15s ease-in-out infinite alternate;
}

.orb-2 {
    position: absolute;
    bottom: -15%;
    right: -5%;
    width: 1000px;
    height: 1000px;
    background: radial-gradient(circle, rgba(246, 169, 10, 0.12) 0%, transparent 60%);
    filter: blur(130px);
    border-radius: 50%;
    will-change: transform;
    animation: float 20s ease-in-out infinite alternate-reverse;
}

@keyframes float {
    0% { transform: translate(0, 0); }
    100% { transform: translate(30px, -50px); }
}

/* 4. Layout & Containers */
.login-box {
    width: calc(100% - 40px);
    max-width: 520px; 
    padding: 50px; 
    background: var(--glass-bg);
    backdrop-filter: blur(40px) saturate(160%);
    -webkit-backdrop-filter: blur(40px) saturate(160%);
    border: 1px solid var(--glass-border);
    border-top: 1px solid var(--glass-border-highlight);
    border-radius: 32px;
    text-align: center;
    position: relative;
    z-index: 2;
    box-shadow: var(--glass-shadow);
    margin: 0 auto;
    animation: popIn 0.6s var(--ease-apple) forwards;
}

@keyframes popIn {
    from { opacity: 0; transform: translateY(30px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.footer-text {
    font-size: 14px;
    color: var(--white-60);
    margin-top: 35px;
    font-weight: 500;
}

.footer-text a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
}

.footer-text a:hover {
    filter: drop-shadow(0 0 8px rgba(255, 87, 34, 0.5));
    color: var(--white);
}

.terms-text {
    font-size: 11px;
    color: var(--white-40);
    margin-top: 25px;
    line-height: 1.6;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.terms-text a {
    color: var(--white-70);
    text-decoration: underline;
    transition: 0.3s;
}

.terms-text a:hover {
    color: var(--white);
}

/* 5. Components */
.input-group {
    text-align: left;
    margin-bottom: 20px;
}

.label {
    display: block;
    font-size: 12px;
    color: var(--white-60);
    margin-bottom: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 5px;
}

.input-wrapper {
    position: relative;
}

input {
    width: 100%;
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    font-size: 15px;
    color: var(--white);
    transition: all 0.3s var(--ease-apple);
    font-family: 'Inter', sans-serif;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.2);
    -webkit-appearance: none;
}

input::placeholder {
    color: var(--white-40);
}

input:focus {
    border-color: var(--accent);
    background: rgba(255, 87, 34, 0.05);
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.2), 0 0 15px rgba(255, 87, 34, 0.15);
}

input.input-error {
    border-color: var(--danger);
    background: rgba(255, 69, 58, 0.05);
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.2), 0 0 15px rgba(255, 69, 58, 0.15);
}

.inline-error {
    display: none;
    color: var(--danger);
    font-size: 12px;
    margin-top: 8px;
    font-weight: 500;
    background: rgba(255, 69, 58, 0.1);
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 69, 58, 0.2);
    animation: fadeIn 0.3s ease;
}

.toggle-password {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--white-40);
    cursor: pointer;
    transition: 0.3s;
    font-size: 16px;
    padding: 5px;
}

.toggle-password:hover {
    color: var(--white);
}

/* Password Progress */
.password-progress-container {
    width: calc(100% - 10px);
    margin: 12px auto 8px;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
}

.password-progress-bar {
    height: 100%;
    width: 0%;
    background: transparent;
    border-radius: 10px;
    transition: width 0.4s var(--ease-apple), background-color 0.4s ease, box-shadow 0.4s ease;
}

.pb-danger {
    background: var(--danger);
    box-shadow: 0 0 8px var(--danger);
}

.pb-warning {
    background: var(--warning);
    box-shadow: 0 0 8px var(--warning);
}

.pb-success {
    background: var(--success);
    box-shadow: 0 0 8px var(--success);
}

/* Password Requirements */
.password-reqs {
    text-align: left;
    background: rgba(0, 0, 0, 0.2);
    padding: 15px 20px;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.req-item {
    font-size: 12px;
    color: var(--white-40);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.req-item i {
    font-size: 13px;
    transition: 0.3s;
}

.req-item.valid {
    color: var(--white);
}

.req-item.valid i {
    color: var(--success);
    filter: drop-shadow(0 0 3px rgba(48, 209, 88, 0.4));
}

.req-item.valid i::before {
    content: "\f058"; /* fa-circle-check */
}

.req-item.invalid {
    color: var(--white-60);
}

.req-item.invalid i {
    color: var(--danger);
}

.req-item.invalid i::before {
    content: "\f057"; /* fa-circle-xmark */
}

/* Master Button */
.btn-login {
    width: 100%;
    margin-top: 10px;
    background: linear-gradient(135deg, var(--grad-start) 0%, var(--grad-end) 100%);
    color: var(--white);
    padding: 18px;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s var(--ease-apple); 
    font-family: 'Inter', sans-serif;
    box-shadow: 0 8px 20px rgba(242, 63, 54, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-login:hover:not(:disabled) {
    transform: translateY(-2px); 
    box-shadow: 0 12px 25px rgba(242, 63, 54, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.5);
}

.btn-login:active:not(:disabled) {
    transform: scale(0.98);
}

.btn-login:disabled {
    background: rgba(255, 255, 255, 0.05);
    color: var(--white-40);
    box-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.05);
    cursor: not-allowed;
    transform: none;
}

.btn-login.btn-loading {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: none;
}

.btn-login.btn-success {
    background: var(--success);
    box-shadow: 0 8px 20px rgba(48, 209, 88, 0.3);
}

.btn-login.btn-error {
    background: var(--danger);
    box-shadow: 0 8px 20px rgba(255, 69, 58, 0.3);
}

/* SweetAlert overrides */
.swal-glass {
    background: rgba(25, 25, 30, 0.9) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 24px !important;
    color: #FFF !important;
    font-family: 'Inter', sans-serif;
}

.swal2-title {
    font-family: 'Poppins', sans-serif !important;
    color: #FFF !important;
    font-size: 22px !important;
}

.swal2-html-container {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 15px !important;
}

.btn-solid-swal {
    background: linear-gradient(135deg, var(--grad-start) 0%, var(--grad-end) 100%) !important;
    color: #FFF !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    padding: 12px 28px !important;
    border: none !important;
}

/* 6. Responsive */
@media (max-width: 480px) {
    .login-box {
        padding: 40px 25px;
        border-radius: 28px;
    }
    
    h1 {
        font-size: 22px;
        margin-bottom: 25px;
    }
    
    input {
        padding: 15px 18px;
        font-size: 14px;
    }
    
    .btn-login {
        padding: 16px;
        font-size: 15px;
    }
    
    .req-item {
        font-size: 11px;
    }
}