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

body {
    font-family: 'Inter', sans-serif;
    color: #1f2937;
    background: linear-gradient(to bottom right, #f9f5ff, #fdf2f8, #fffbeb);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Container */
.container {
    width: 100%;
    max-width: 26rem;
    margin: 0 auto;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.logo-icon {
    padding: 0.5rem;
    border-radius: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    color: white;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    background: linear-gradient(to right, #9333ea, #ec4899);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Signup Card */
.signup-card {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    width: 100%;
}

.signup-header {
    text-align: center;
    margin-bottom: 1.25rem;
}

.signup-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.signup-subtitle {
    color: #4b5563;
    font-size: 0.875rem;
}

/* Form */
.signup-form {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.form-label {
    font-weight: 500;
    color: #374151;
    font-size: 0.875rem;
}

.form-input {
    padding: 0.625rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    background-color: white;
    width: 100%;
}

.form-input:focus {
    outline: none;
    border-color: #9333ea;
    box-shadow: 0 0 0 2px rgba(147, 51, 234, 0.1);
}

.form-input::placeholder {
    color: #9ca3af;
}

/* Password Input Container */
.password-container {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #6b7280;
    padding: 0.25rem;
}

.password-toggle:hover {
    color: #9333ea;
}

/* Terms and Privacy */
.terms-group {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin: 0.25rem 0;
}

.checkbox {
    width: 0.875rem;
    height: 0.875rem;
    accent-color: #9333ea;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.terms-text {
    font-size: 0.75rem;
    color: #4b5563;
    line-height: 1.3;
}

.terms-link {
    color: #9333ea;
    font-weight: 500;
    transition: color 0.2s ease;
}

.terms-link:hover {
    color: #7c3aed;
}

/* Button */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem;
    font-weight: 500;
    transition: all 0.2s ease;
    padding: 0.625rem 1rem;
    cursor: pointer;
    font-size: 0.875rem;
    border: none;
    width: 100%;
}

.button-primary {
    background: linear-gradient(to right, #9333ea, #ec4899);
    color: white;
}

.button-primary:hover {
    background: linear-gradient(to right, #7e22ce, #db2777);
    transform: translateY(-1px);
}

.button-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    margin: 0.875rem 0;
}

.divider-line {
    flex: 1;
    height: 1px;
    background-color: #e5e7eb;
}

.divider-text {
    padding: 0 0.75rem;
    color: #6b7280;
    font-size: 0.75rem;
}

/* Social Login */
.social-login {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}


.social-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    background: white;
    color: #374151;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
    font-size: 0.75rem;
    min-height: 2.25rem;
    width: 100%;
    margin-bottom: 12px;
}


.social-button:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.social-icon {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

/* Login link */
.login-link {
    text-align: center;
    margin-top: 0.875rem;
    padding-top: 0.875rem;
    border-top: 1px solid #e5e7eb;
}

.login-text {
    color: #6b7280;
    font-size: 0.75rem;
}

.login-link-text {
    color: #9333ea;
    font-weight: 500;
    transition: color 0.2s ease;
}

.login-link-text:hover {
    color: #7c3aed;
}

/* Back to home */
.back-home {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: #6b7280;
    font-size: 0.75rem;
    transition: color 0.2s ease;
}

.back-home:hover {
    color: #9333ea;
}

/* Loading state */
.loading {
    display: inline-block;
    width: 0.875rem;
    height: 0.875rem;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Messages */
.success-message, .error-message {
    padding: 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    margin-bottom: 0.75rem;
}

.success-message {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.error-message {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
}

/* Form validation */
.form-input.error {
    border-color: #dc2626;
}

.form-input.success {
    border-color: #10b981;
}

.field-error {
    color: #dc2626;
    font-size: 0.625rem;
    margin-top: 0.125rem;
}

/* Mobile Responsive Styles */
@media (max-width: 640px) {
    body {
        padding: 0.25rem;
        align-items: flex-start;
        padding-top: 1rem;
    }

    .container {
        max-width: 100%;
        padding: 20px;
    }

    .back-home {
        position: static;
        justify-content: center;
        margin-bottom: 0.5rem;
        font-size: 0.6875rem;
    }

    .logo {
        margin-bottom: 0.75rem;
    }

    .logo-icon {
        padding: 0.375rem;
    }

    .logo-icon svg {
        width: 1.25rem;
        height: 1.25rem;
    }

    .logo-text {
        font-size: 1.125rem;
    }

    .signup-card {
        padding: 1rem;
        border-radius: 0.5rem;
    }

    .signup-title {
        font-size: 1.25rem;
    }

    .signup-subtitle {
        font-size: 0.8125rem;
    }

    .signup-header {
        margin-bottom: 1rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .signup-form {
        gap: 0.75rem;
    }

    .form-input {
        padding: 0.5rem 0.625rem;
        font-size: 0.8125rem;
    }

    .button {
        padding: 0.5rem 0.75rem;
        font-size: 0.8125rem;
    }

    .terms-group {
        gap: 0.375rem;
        margin: 0.125rem 0;
    }

    .terms-text {
        font-size: 0.6875rem;
    }

    .checkbox {
        width: 0.75rem;
        height: 0.75rem;
    }

    .divider {
        margin: 0.75rem 0;
    }

    .social-login {
        grid-template-columns: 1fr;
        gap: 0.375rem;
    }

    .social-button {
        padding: 0.5rem;
        font-size: 0.6875rem;
    }

    .social-icon {
        width: 0.875rem;
        height: 0.875rem;
    }

    .login-link {
        margin-top: 0.75rem;
        padding-top: 0.75rem;
    }

    .login-text {
        font-size: 0.6875rem;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    body {
        padding: 0.125rem;
        padding-top: 0.5rem;
    }

    .signup-card {
        padding: 0.75rem;
    }

    .form-input {
        padding: 0.4375rem 0.5rem;
        font-size: 0.75rem;
    }

    .button {
        padding: 0.4375rem 0.625rem;
        font-size: 0.75rem;
    }

    .terms-text {
        font-size: 0.625rem;
    }

    .social-button {
        padding: 0.4375rem;
        font-size: 0.625rem;
        gap: 0.375rem;
    }

    .social-icon {
        width: 0.75rem;
        height: 0.75rem;
    }
}

/* Landscape mobile */
@media (max-width: 640px) and (orientation: landscape) {
    body {
        padding-top: 0.5rem;
    }

    .signup-header {
        margin-bottom: 0.75rem;
    }

    .signup-form {
        gap: 0.5rem;
    }

    .divider {
        margin: 0.5rem 0;
    }

    .login-link {
        margin-top: 0.5rem;
        padding-top: 0.5rem;
    }
}

/* Very small height screens */
@media (max-height: 600px) {
    body {
        align-items: flex-start;
        padding-top: 0.5rem;
    }

    .logo {
        margin-bottom: 0.5rem;
    }

    .signup-header {
        margin-bottom: 0.75rem;
    }

    .signup-form {
        gap: 0.5rem;
    }

    .divider {
        margin: 0.5rem 0;
    }

    .login-link {
        margin-top: 0.5rem;
        padding-top: 0.5rem;
    }
}
.d-none {
    display: none;
}
.disabled {
    pointer-events: none;
    opacity: 0.5;
}
@media (max-width: 768px) {
  .signup-card {
    width: 100%;
    max-width: 100%;
    padding: 1.5rem 1rem;
    box-shadow: none;
    border-radius: 0;
  }

  .signup-header {
    text-align: center;
    margin-bottom: 1.5rem;
  }

  .signup-title {
    font-size: 1.75rem;
  }

  .signup-subtitle {
    font-size: 1rem;
  }

  .form-row {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
  }

  .form-group {
    width: 100%;
    /*margin-bottom: 1.25rem;*/
  }

  .form-label {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
  }

  .form-input {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
  }

  .password-container {
    position: relative;
  }

  .password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
  }

  .terms-group {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-top: 1rem;
  }

  .terms-text {
    font-size: 0.85rem;
  }

  .button-primary {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    margin-top: 1rem;
  }

  .divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 2rem 0;
  }

  .social-button {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .login-link {
    text-align: center;
    margin-top: 1.5rem;
  }

  .login-text {
    font-size: 0.95rem;
  }

  .login-link-text {
    font-weight: 600;
    margin-left: 0.25rem;
  }
}
