/* 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: right;

    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);
}

.page-cadastro {
  width: 100%;
  min-height: 100vh;

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

  gap: 40px;

  padding: 20px 40px;
}

.page-cadastro-image {
  display: flex;
  align-items: center;
}

.left-side {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-cadastro-image img {
  width: 100%;
  max-width: 430px;

  display: block;
}

.quote {
  margin-top: -5px;
  text-align: center;
}

.quote p {
  font-family: 'Belleza', sans-serif;
  font-size: 22px;

  font-style: italic;
  line-height: 1.4;

  color: #676F54;
}

.quote span {
  display: block;

  margin-top: 10px;

  font-size: 15px;
  letter-spacing: 1px;

  color: #8A8A8A;
}


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

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

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

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

.cadastro-container {
    width: 100%;
    max-width: 420px;
    
}
.cadastro-card {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 28px;
    padding: 25px;
    border: 1px solid rgba(103, 111, 84, 0.15);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(10px);

}

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

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

.cadastro-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 */
.cadastro-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;
}

.cadastro-btn:hover {

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


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

/* Loading */
.cadastro-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;
}

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

.cadastro-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); }
}

/* =========================
   RESPONSIVO - CADASTRO
========================= */

@media (max-width: 900px) {

    body {
        justify-content: center;
        padding: 20px;
    }

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

    .page-cadastro {
        flex-direction: column;
        gap: 25px;
        padding: 80px 20px 30px;
    }

    .left-side {
        order: 1;
    }

    .cadastro-container {
        order: 2;
        max-width: 420px;
    }

    .page-cadastro-image img {
        max-width: 300px;
    }

    .quote p {
        font-size: 18px;
    }

    .quote span {
        font-size: 13px;
    }

    .cadastro-logo h1 {
        font-size: 46px;
    }

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

    .cadastro-card {
        padding: 28px;
        border-radius: 24px;
    }
}

@media (max-width: 480px) {

    .page-cadastro {
        padding: 75px 12px 25px;
    }

    .page-cadastro-image img {
        max-width: 230px;
    }

    .cadastro-card {
        padding: 24px 20px;
    }

    .cadastro-logo h1 {
        font-size: 40px;
        letter-spacing: 4px;
    }

    .cadastro-logo .logo-line {
        width: 110px;
    }

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

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

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

    .cadastro-btn {
        padding: 14px 20px;
    }
}

