:root {
    --primary: #2f5c55;
    --primary-dark: #244a44;
    --primary-light: #f0fdfa;
    --accent: #c5a686;
    --gradient: linear-gradient(135deg, #2f5c55 0%, #c5a686 100%);
    --text-dark: #1a1a1a;
    --text-main: #2d3436;
    --text-muted: #636e72;
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-dark: #111111;
    --border: #eef0f2;
    --success: #22c55e;
    --font-main: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-serif: Georgia, 'Times New Roman', serif;
    --transition: all 0.3s ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background: var(--bg-white);
    color: var(--text-main);
    margin: 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-gradient {
    background: var(--gradient);
    color: #fff;
    box-shadow: 0 4px 15px rgba(47, 92, 85, 0.25);
    position: relative;
    overflow: hidden;
}

.btn-gradient::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--primary);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-gradient:hover::before {
    opacity: 1;
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(47, 92, 85, 0.35);
}

.btn-gradient > * {
    position: relative;
    z-index: 1;
}

/**
 * CaReMe Auth Pages Styles
 * Login, Register, 2FA - consistent with landing design
 */

/* Auth Layout */
.auth-page {
    min-height: 100vh;
    display: flex;
    background: var(--bg-light);
}

.auth-sidebar {
    width: 45%;
    background: var(--gradient);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 3rem;
    overflow: hidden;
}

.auth-sidebar::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    pointer-events: none;
}

.auth-sidebar-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    z-index: 1;
}

.auth-sidebar-logo .logo-icon {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.2);
    color: #fff;
    border-radius: 8px;
}

.auth-sidebar-logo .logo-text {
    color: #fff;
    font-size: 1.75rem;
}

.auth-sidebar-content {
    position: relative;
    z-index: 1;
    color: #fff;
}

.auth-sidebar-content h2 {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.auth-sidebar-content p {
    font-size: 1.1rem;
    opacity: 0.85;
    line-height: 1.7;
    max-width: 400px;
}

.auth-features {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.auth-feature {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.auth-feature-icon {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.auth-feature-text {
    font-size: 0.95rem;
    opacity: 0.9;
}

.auth-sidebar-footer {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.auth-sidebar-footer a {
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
    transition: color 0.2s;
}

.auth-sidebar-footer a:hover {
    color: #fff;
}

/* Auth Main Content */
.auth-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
}

.auth-card {
    width: 100%;
    max-width: 420px;
}

.auth-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.auth-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Form Styles */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    position: relative;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.9rem 1rem;
    font-size: 0.95rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    color: var(--text-dark);
    transition: all 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(47, 92, 85, 0.1);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-input.error {
    border-color: #ef4444;
}

/* Password Input with Toggle */
.password-wrapper {
    position: relative;
}

.password-wrapper .form-input {
    padding-right: 3rem;
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.password-toggle:hover {
    color: var(--text-dark);
}

/* Checkbox */
.form-checkbox {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.form-checkbox input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}

.form-checkbox span {
    font-size: 0.9rem;
    color: var(--text-main);
}

/* Error Message */
.form-error {
    font-size: 0.8rem;
    color: #ef4444;
    margin-top: 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

/* Form Footer */
.form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.9rem;
}

.form-link {
    color: var(--primary);
    font-weight: 500;
    transition: color 0.2s;
}

.form-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Submit Button */
.auth-submit {
    width: 100%;
    padding: 1rem;
    margin-top: 0.5rem;
}

/* Auth Switch */
.auth-switch {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.auth-switch a {
    color: var(--primary);
    font-weight: 600;
}

.auth-switch a:hover {
    text-decoration: underline;
}

/* Alert Messages */
.auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.auth-alert.error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.auth-alert.success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.auth-alert.info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
}

.auth-alert svg {
    flex-shrink: 0;
    margin-top: 0.1rem;
}

/* Mobile Responsive */
@media (max-width: 991px) {
    .auth-sidebar {
        display: none;
    }

    .auth-main {
        padding: 2rem;
    }
}

