/* =========================================
   SmartHome — Auth Layout Styling (DESIGN.md)
   ========================================= */
body, html {
    height: 100%;
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: #000000;
    /* Spotlight background using Halo Teal and Pure Black */
    background-image: radial-gradient(circle at 50% 45%, rgba(72, 202, 228, 0.08) 0%, #000000 70%);
}

.auth-bg {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
}

/* Single column elegant centered card */
.auth-card {
    background: #1d1d1f;
    border: 1px solid #333336;
    border-radius: 28px;
    width: 100%;
    max-width: 480px;
    padding: 44px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Zero elevation policy */
.auth-bg *, 
.auth-bg .card, 
.auth-bg .btn, 
.auth-bg .form-control {
    box-shadow: none !important;
    text-shadow: none !important;
}

/* Typography scale matching DESIGN.md */
.smart-auth-logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    margin-bottom: 8px;
}

.smart-auth-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.14;
    letter-spacing: -0.32px;
    color: #f5f5f7;
    margin: 0;
}

.smart-auth-subtitle {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.43;
    letter-spacing: -0.22px;
    color: #86868b;
    margin: 8px 0 0 0;
}

/* Input Fields styling */
.form-group-custom {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.form-label-custom {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: #86868b;
    text-transform: uppercase;
}

.auth-card .form-control {
    padding: 14px 16px !important;
    border-radius: 12px !important;
    border: 1px solid #333336 !important;
    background: #111111 !important;
    color: #f5f5f7 !important;
    font-family: 'Inter', sans-serif;
    font-size: 14px !important;
    transition: all 0.2s ease !important;
}

.auth-card .form-control:focus {
    border-color: #00b4d8 !important;
    background: #111111 !important;
    color: #f5f5f7 !important;
    outline: none !important;
}

.auth-card .form-control::placeholder {
    color: #86868b !important; /* Premium readable gray instead of invisible dark gray */
}

/* Buttons */
.btn-auth-primary {
    background-color: #00b4d8 !important;
    color: #ffffff !important;
    border-radius: 36px !important;
    padding: 14px !important;
    font-size: 14px !important;
    font-weight: 600;
    letter-spacing: -0.22px;
    border: none !important;
    width: 100%;
    transition: opacity 0.2s ease, transform 0.1s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.btn-auth-primary:hover {
    opacity: 0.95;
}
.btn-auth-primary:active {
    transform: scale(0.98);
}

.btn-auth-google {
    background: #333336 !important;
    border: 1px solid #424245 !important;
    color: #f5f5f7 !important;
    border-radius: 36px !important;
    padding: 14px !important;
    font-size: 14px !important;
    font-weight: 600;
    width: 100%;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
}
.btn-auth-google:hover {
    background: #424245 !important;
    border-color: #86868b !important;
}

/* Divider styling */
.smart-divider {
    position: relative;
    text-align: center;
    margin: 16px 0;
}
.smart-divider-line {
    border-top: 1px solid #333336;
    margin: 0;
}
.smart-divider-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #1d1d1f;
    padding: 0 16px;
    color: #86868b;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Category highlights */
.smart-link-teal {
    color: #48cae4 !important;
    text-decoration: none;
    font-weight: 600;
}
.smart-link-teal:hover {
    text-decoration: underline;
}

/* Error wrapper */
.smart-error-box {
    background-color: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.25);
    border-radius: 12px;
    padding: 12px 16px;
}
