/* ===== Base typography ===== */
body {
    font-family: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
    color: #1a1a1a;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: #f8fafc;
}

/* ===== Auth Form Styles (Visily design) ===== */

.auth-form {
    font-family: "Roboto", sans-serif;
}

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

.auth-form .form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #16181D;
    margin-bottom: 0.5rem;
    font-family: "Roboto", sans-serif;
}

.auth-form .form-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.auth-form .form-label-row .form-label {
    margin-bottom: 0;
}

.auth-form .form-label-link {
    font-size: 0.75rem;
    font-weight: 500;
    color: #258CF4;
    text-decoration: none;
    font-family: "Roboto", sans-serif;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.auth-form .form-label-link:hover {
    text-decoration: underline;
}

/* Input wrapper with icon */
.auth-form .input-wrapper {
    display: flex;
    align-items: center;
    background: #F9FAFB;
    border: 1px solid #E0E2E6;
    border-radius: 0.5rem;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-form .input-wrapper:focus-within {
    border-color: #22c55e;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.1);
}

.auth-form .input-icon {
    padding-left: 1rem;
    display: flex;
    align-items: center;
    pointer-events: none;
    flex-shrink: 0;
}

.auth-form .input-icon svg {
    width: 18px;
    height: 18px;
    opacity: 0.7;
}

.auth-form .form-input {
    width: 100%;
    padding: 0.75rem;
    background: transparent;
    border: none;
    outline: none;
    font-size: 1rem;
    color: #343842;
    font-family: "Roboto", sans-serif;
}

.auth-form .form-input::placeholder {
    color: rgba(52, 56, 66, 0.6);
}

.auth-form .password-toggle {
    padding-right: 1rem;
    display: flex;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    color: #343842;
    flex-shrink: 0;
}

.auth-form .password-toggle svg {
    width: 18px;
    height: 18px;
}

/* Login button */
.auth-form .btn-login {
    width: 100%;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid transparent;
    cursor: pointer;
    transition: box-shadow 0.2s, transform 0.1s;
    font-family: "Roboto", sans-serif;
    margin-top: 0.5rem;
}

.auth-form .btn-login:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.auth-form .btn-login:active {
    transform: scale(0.98);
}

.auth-form .btn-login:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.auth-form .btn-login-text {
    font-size: 1.125rem;
    font-weight: 700;
    color: #22C365;
}

.auth-form .btn-login-arrow svg {
    width: 20px;
    height: 20px;
}

/* ===== Divider ===== */
.auth-divider {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 3rem 0 1.5rem;
}

.auth-divider::before {
    content: '';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
}

.auth-divider-line {
    width: 100%;
    height: 1px;
    background: rgba(224, 226, 230, 0.5);
}

.auth-divider-text {
    position: relative;
    padding: 0 1rem;
    background: #fff;
    font-size: 0.75rem;
    color: #343842;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: "Inter", sans-serif;
    white-space: nowrap;
}

/* Create account button */
.btn-create-account {
    width: 100%;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid rgba(37, 140, 244, 0.3);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    font-family: "Roboto", sans-serif;
    text-decoration: none;
}

.btn-create-account:hover {
    background: rgba(37, 140, 244, 0.05);
}

.btn-create-account:active {
    transform: scale(0.98);
}

.btn-create-account span {
    font-size: 0.875rem;
    font-weight: 600;
    color: #258CF4;
}

/* ===== Footer ===== */
.auth-footer {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(224, 226, 230, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 0.625rem;
    color: #343842;
    font-family: "Inter", sans-serif;
}

.auth-footer a,
.auth-footer button {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #343842;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.625rem;
    padding: 0;
    font-family: "Inter", sans-serif;
    transition: color 0.2s;
}

.auth-footer a:hover,
.auth-footer button:hover {
    color: #22C365;
}

.auth-footer-dot {
    width: 4px;
    height: 4px;
    background: #E0E2E6;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ===== Alerts ===== */
.auth-alert {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-family: "Roboto", sans-serif;
}

.auth-alert-error {
    background: #FEF2F2;
    color: #991B1B;
    border: 1px solid #FECACA;
}

.auth-alert-success {
    background: #F0FDF4;
    color: #166534;
    border: 1px solid #BBF7D0;
}

/* ===== Validation ===== */
.validation-message {
    color: #DC2626;
    font-size: 0.75rem;
    margin-top: 0.35rem;
    font-family: "Roboto", sans-serif;
}

/* ===== Loading spinner ===== */
.auth-spinner {
    display: inline-block;
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid rgba(34, 195, 101, 0.3);
    border-top-color: #22C365;
    border-radius: 50%;
    animation: auth-spin 0.6s linear infinite;
}

@keyframes auth-spin {
    to { transform: rotate(360deg); }
}

/* ===== Social Login Buttons ===== */
.social-login-buttons {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    border: 1px solid #E0E2E6;
    background: #fff;
    text-decoration: none;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.1s;
}

.social-btn:hover {
    border-color: #22C365;
    box-shadow: 0 2px 8px rgba(34, 195, 101, 0.15);
    transform: translateY(-1px);
}

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

.social-btn svg {
    display: block;
}
