/* Auth pages — login & signup */

* {
    box-sizing: border-box;
}

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}

.auth-page {
    height: 100vh;
    overflow: hidden;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: flex-end; /* Align the form to the right side */
    /* Use an inline SVG to recreate the layered wave effect */
    background-color: #FFFFFF; /* Pure white base color */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 1024' preserveAspectRatio='xMinYMid slice'%3E%3Cdefs%3E%3Cfilter id='shadow' x='-20%25' y='-20%25' width='140%25' height='140%25'%3E%3CfeDropShadow dx='15' dy='0' stdDeviation='20' flood-color='%23000' flood-opacity='0.12'/%3E%3C/filter%3E%3C/defs%3E%3Cpath fill='%23C5C9CF' filter='url(%23shadow)' d='M0,0 C500,100 350,400 550,600 C700,800 650,900 600,1024 L0,1024 Z'/%3E%3Cpath fill='%23A4AAB4' filter='url(%23shadow)' d='M0,0 C400,150 250,350 450,550 C600,750 450,900 500,1024 L0,1024 Z'/%3E%3Cpath fill='%23838C98' filter='url(%23shadow)' d='M0,0 C250,200 150,300 350,550 C550,800 350,950 400,1024 L0,1024 Z'/%3E%3Cpath fill='%236B7280' filter='url(%23shadow)' d='M0,0 C50,150 -50,350 200,550 C450,750 200,900 250,1024 L0,1024 Z'/%3E%3C/svg%3E");
    background-size: cover;
    background-position: left center;
    background-repeat: no-repeat;
    padding: 0 12%; 
}

.auth-card {
    /* Glassmorphism effect */
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    padding: 40px 32px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
}

.auth-logo .logo-icon {
    width: 36px;
    height: 36px;
    background: #6B7280; /* Theme Slate match */
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(107, 114, 128, 0.4);
    font-family: Georgia, 'Times New Roman', Times, serif;
}

.auth-logo .logo-text {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    letter-spacing: 0.5px;
    font-family: Georgia, 'Times New Roman', Times, serif;
}

.auth-heading {
    text-align: center;
    margin-bottom: 28px;
}

.auth-heading h1 {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
    font-family: Georgia, 'Times New Roman', Times, serif;
}

.auth-heading p {
    font-size: 13px;
    color: #4b5563;
}

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

.auth-form label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}

.auth-form input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(0, 0, 0, 0.05); /* Added slight border for light mode */
    border-radius: 6px;
    font-size: 14px;
    color: #111827;
    background: rgba(255, 255, 255, 0.8);
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.auth-form input:focus {
    background: #ffffff;
    box-shadow: 0 0 0 2px rgba(107, 114, 128, 0.4); /* Theme Slate highlight */
}

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

.form-row {
    display: flex;
    gap: 12px;
}

.form-row .form-group {
    flex: 1;
}

.btn-primary {
    width: 100%;
    padding: 12px;
    background: #6B7280; /* Theme Slate match */
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 12px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(107, 114, 128, 0.3);
}

.btn-primary:hover {
    background: #4B5563; /* Darker Slate */
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(107, 114, 128, 0.4);
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 13px;
    color: #6b7280;
}

.auth-footer a {
    color: #4b5563;
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.2s;
}

.auth-footer a:hover {
    color: #111827;
}

/* ── Phone input with country code ── */
.phone-input-wrap {
    display: flex;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 6px;
    overflow: hidden;
    background: rgba(255,255,255,0.8);
    transition: all 0.2s ease;
}
.phone-input-wrap:focus-within {
    background: #ffffff;
    box-shadow: 0 0 0 2px rgba(107,114,128,0.4);
}
.phone-cc-select {
    border: none;
    border-right: 1px solid rgba(0,0,0,0.1);
    background: transparent;
    padding: 12px 8px 12px 12px;
    font-size: 14px;
    color: #111827;
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    min-width: 90px;
    flex-shrink: 0;
}
.phone-num-input {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    border-radius: 0 !important;
    flex: 1;
    min-width: 0;
    padding: 12px 14px !important;
}