/* Verse Login Page */

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

body {
    font-family: "Inter", Arial, sans-serif;
    background: linear-gradient(135deg, #f8f8f5, #D7F2BA);
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;
    line-height: 1.6;
    color: #2b2b2b;
}

.back-button {
  position: absolute;

  top: 30px;
  left: 40px;

  text-decoration: none;

  color: #676F54;

  font-size: 18px;
  font-weight: 500;

  transition: 0.3s ease;
}

.back-button:hover {
  color: #79B4A9;
  transform: translateX(-4px);
}

.login-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 28px;
}

.login-logo h1 {
    font-family: "Belleza", sans-serif;
    font-size: 58px;
    font-weight: 400;
    letter-spacing: 6px;
    color: #79B4A9;
    margin: 0;
    line-height: 1;
}

.login-logo .logo-line {
    width: 140px;
    height: 4px;
    background: #D4AF37;
    border-radius: 999px;
    margin-top: 10px;
}

.login-container {
    width: 100%;
    max-width: 420px;
}

.login-card {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 28px;
    padding: 40px;
    border: 1px solid rgba(103, 111, 84, 0.15);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(10px);
    
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-header h2 {
    font-family: "Belleza", sans-serif;
    font-size: 2.4rem;
    font-weight: 400;
    letter-spacing: 2px;
    color: #676F54;
    margin-bottom: 10px;
}

.login-header p {
    color: #4f5f57;
    font-size: 0.95rem;
}

/* Form */
.form-group {
    margin-bottom: 22px;
}

.input-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
}

.input-wrapper input {
    background: #f8f8f5;
    border: 2px solid transparent;
    border-radius: 16px;
    padding: 16px 18px 10px;
    color: #2b2b2b;
    font-size: 16px;
    transition: 0.25s ease;
    width: 100%;
    outline: none;
}

.input-wrapper input::placeholder {
    color: transparent;
}

.input-wrapper label {
    position: absolute;
    left: 18px;
    top: 14px;
    color: #676F54;
    font-size: 15px;
    transition: 0.25s ease;
    pointer-events: none;
    transform-origin: left top;
}

.input-wrapper input:focus,
.input-wrapper input:valid,
.input-wrapper input.has-value {
    border-color: #79B4A9;
    background: #f8f8f5;
    border: 2px solid #d7e4cf;
    transform: translateY(-2px);
}

.input-wrapper input:focus + label,
.input-wrapper input:valid + label,
.input-wrapper input.has-value + label {
    transform: translateY(-9px) scale(0.85);
    color: #79B4A9;
    font-weight: 600;
}

/* Password Toggle */
.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 50px;
}

.password-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);

    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #676F54;
    transition: 0.2s ease;
}

.password-toggle:hover {
    color: #79B4A9;
}

/* Error */
.error-message {
    display: block;
    color: #b91c1c;
    font-size: 0.75rem;
    font-weight: 500;
    margin-top: 6px;
    margin-left: 6px;
    opacity: 0;
    transform: translateY(-4px);
    transition: 0.2s ease;
}

.error-message.show {
    opacity: 1;
    transform: translateY(0);
}

.form-group.error .input-wrapper input {
    border-color: #b91c1c;
}

/* Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 26px;
    flex-wrap: wrap;
    gap: 12px;
}

.remember-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.remember-wrapper input[type="checkbox"] {
    display: none;
}

.checkbox-label {
    color: #4f5f57;
    font-size: 0.875rem;
    cursor: pointer;
    user-select: none;

    display: flex;
    align-items: center;
    gap: 8px;
}

.checkmark {
    width: 17px;
    height: 17px;
    border: 2px solid #9CC69B;
    border-radius: 5px;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: 0.2s ease;
    flex-shrink: 0;
    background: white;
}

.remember-wrapper input[type="checkbox"]:checked ~ .checkbox-label .checkmark {
    background: #79B4A9;
    border-color: #79B4A9;
}

.remember-wrapper input[type="checkbox"]:checked ~ .checkbox-label .checkmark::after {
    content: "✓";
    color: white;
    font-size: 10px;
    font-weight: bold;
}

.forgot-password {
    color: #676F54;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    transition: 0.2s ease;
}

.forgot-password:hover {
    color: #79B4A9;
}

/* Button */
.login-btn {
    width: 100%;
    background: #676F54;
    border: none;
    border-radius: 999px;
    padding: 15px 24px;

    color: white;
    font-size: 16px;
    font-weight: 700;

    cursor: pointer;
    transition: 0.25s ease;
    position: relative;
    margin-bottom: 24px;
}

.login-btn:hover {

    background: #79B4A9;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(121,180,169,0.3);
}


.login-btn:active {
    transform: translateY(0);
}

/* Loading */
.login-btn.loading {
    pointer-events: none;
    background: #9CC69B;
}

.btn-text {
    transition: opacity 0.2s ease;
}

.btn-loader {
    position: absolute;
    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;

    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;

    opacity: 0;
    animation: spin 1s linear infinite;
    transition: opacity 0.2s ease;
}

.login-btn.loading .btn-text {
    opacity: 0;
}

.login-btn.loading .btn-loader {
    opacity: 1;
}

/* Signup Link */
.signup-link {
    text-align: center;
}

.signup-link p {
    color: #4f5f57;
    font-size: 0.875rem;
}

.signup-link a {
    color: #676F54;
    text-decoration: none;
    font-weight: 700;
    transition: 0.2s ease;
}

.signup-link a:hover {
    color: #79B4A9;
}

/* Success */
.success-message {
    display: none;
    text-align: center;
    padding: 32px 20px;

    opacity: 0;
    transform: translateY(20px);
    transition: 0.3s ease;
}

.success-message.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.success-icon {
    width: 52px;
    height: 52px;
    background: #79B4A9;
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 20px;
    color: white;
    margin: 0 auto 16px;

    animation: successPulse 0.5s ease;
}

.success-message h3 {
    color: #676F54;
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.success-message p {
    color: #4f5f57;
    font-size: 0.875rem;
}

/* Icons */
.eye-icon {
    display: block;
    width: 20px;
    height: 20px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Animations */
@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes successPulse {
    0% { transform: scale(0); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Mobile */
@media (max-width: 480px) {
    .login-card {
        padding: 28px;
        margin: 10px;
        border-radius: 22px;
    }

    .login-header h2 {
        font-size: 2rem;
    }

    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}

/* Accessibility */
:focus-visible {
    outline: 2px solid #79B4A9;
    outline-offset: 3px;
    border-radius: 8px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .hero {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .about-cards {
        grid-template-columns: 1fr;
    }
}

/* =========================
   RESPONSIVO - LOGIN
========================= */

@media (max-width: 768px) {

    body {
        padding: 15px;
    }

    .back-button {
        top: 20px;
        left: 20px;
        font-size: 16px;
    }

    .login-container {
        max-width: 100%;
    }

    .login-card {
        padding: 30px 24px;
    }

    .login-logo h1 {
        font-size: 46px;
        letter-spacing: 4px;
    }

    .login-header h2 {
        font-size: 2rem;
    }

    .login-header p {
        font-size: 0.9rem;
    }

    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

@media (max-width: 480px) {

    body {
        padding: 10px;
    }

    .back-button {
        top: 15px;
        left: 15px;
        font-size: 15px;
    }

    .login-card {
        padding: 24px 18px;
        border-radius: 20px;
    }

    .login-logo h1 {
        font-size: 40px;
        letter-spacing: 3px;
    }

    .login-logo .logo-line {
        width: 100px;
    }

    .login-header h2 {
        font-size: 1.7rem;
    }

    .login-header p {
        font-size: 0.85rem;
    }

    .input-wrapper input {
        font-size: 15px;
        padding: 15px 16px 10px;
    }

    .checkbox-label {
        font-size: 0.8rem;
    }

    .forgot-password {
        font-size: 0.8rem;
    }

    .login-btn {
        padding: 14px 18px;
    }

    .signup-link p {
        font-size: 0.8rem;
    }
}

