/* /var/www/html/clone/login.css */

:root {
    --background: #1A1A1A;
    --surface: #242424;
    --input-bg: #3D3D3D;
    --primary: #39FF14;
    --text-primary: #FFFFFF;
    --text-secondary: #9E9E9E;
    --border-color: #505050;
    --error-bg: rgba(224, 49, 49, 0.1);
    --error-text: #E03131;
    --focus-highlight: #FFFDE7; /* Amarelo claro para o foco */
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; }

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--background);
    color: var(--text-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 1rem;
}

.auth-wrapper {
    position: relative;
    width: 100%;
    max-width: 400px;
    perspective: 1500px;
    transition: height 0.4s ease-in-out;
}

.form-container {
    position: absolute;
    width: 100%;
    background-color: var(--surface);
    border-radius: 24px;
    padding: 2.5rem;
    backface-visibility: hidden;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.76, 0, 0.24, 1);
}

#login-form { height: 480px; transform: rotateY(0deg); }
#register-form { height: 720px; transform: rotateY(180deg); }
.auth-wrapper { height: 480px; }
.auth-wrapper.show-register { height: 720px; }
.auth-wrapper.show-register #login-form { transform: rotateY(-180deg); }
.auth-wrapper.show-register #register-form { transform: rotateY(0deg); }

form h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
}

.form-group { margin-bottom: 1.5rem; }

.form-group input {
    width: 100%;
    background-color: var(--input-bg);
    border: 1px solid var(--input-bg);
    border-radius: 14px;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: all 0.3s;
}

.form-group input::placeholder { color: var(--text-secondary); font-weight: 400; }

.form-group input:focus {
    outline: none;
    border-color: var(--border-color);
    background-color: var(--focus-highlight);
    color: #000;
}
.form-group input:focus::placeholder { color: #555; }

.coupon-section { margin-bottom: 1.5rem; }
.coupon-section hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin-bottom: 1rem;
}
.coupon-section .coupon-text {
    text-align: center;
    font-size: 0.8rem;
    font-weight: 300; /* Leve e fina */
    color: var(--text-secondary);
}

.btn-submit {
    width: 100%;
    background-color: var(--primary);
    color: #000000;
    border: none;
    border-radius: 14px;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 54px;
}

.btn-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(57, 255, 20, 0.2);
}
.btn-submit:disabled { background-color: rgba(57, 255, 20, 0.4); cursor: not-allowed; }

.loader {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(0, 0, 0, 0.2);
    border-top-color: #000000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.message {
    text-align: center;
    padding: 0.75rem 1rem;
    border-radius: 14px;
    font-size: 0.9rem;
    font-weight: 500;
    display: none;
    margin-top: 1rem;
}
.message.success { background-color: rgba(57, 255, 20, 0.15); color: var(--primary); display: block; }
.message.error { background-color: var(--error-bg); color: var(--error-text); display: block; }

.switch-form {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}
.switch-form a { color: var(--primary); text-decoration: none; font-weight: 700; }
.switch-form a:hover { text-decoration: underline; }

@media (max-width: 480px) {
    .form-container { padding: 2rem 1.5rem; }
    form h2 { font-size: 1.75rem; margin-bottom: 2rem; }
    #login-form, #register-form, .auth-wrapper, .auth-wrapper.show-register { height: auto; }
}
