/* ==========================================
   STAY HATCH - CUSTOMER AUTHENTICATION STYLES
   File: customer-login.css
   ========================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, sans-serif;
}

body {
    background: linear-gradient(135deg, #064B5A 0%, #0F172A 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

.auth-container {
    width: 100%;
    max-width: 440px;
    position: relative;
    z-index: 1;
}

.auth-card {
    background: #FFFFFF;
    padding: 36px 32px 32px;
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Top gradient bar */
.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #08B8B0 0%, #064B5A 100%);
}

/* ==========================================
   LOGO
   ========================================== */
.auth-logo {
    margin-bottom: 24px;
}

.auth-logo .logo-icon {
    background: linear-gradient(135deg, #08B8B0 0%, #064B5A 100%);
    color: #FFFFFF;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 20px;
    margin-bottom: 10px;
    box-shadow: 0 6px 16px rgba(8, 184, 176, 0.3);
}

.auth-logo h2 {
    font-size: 26px;
    font-weight: 800;
    color: #064B5A;
    letter-spacing: -0.5px;
    margin-bottom: 2px;
}

.auth-subtitle {
    font-size: 12px;
    color: #64748B;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* ==========================================
   STEP HEADER
   ========================================== */
.step-header {
    text-align: center;
    margin-bottom: 22px;
}

.step-header h3 {
    font-size: 20px;
    font-weight: 800;
    color: #0F172A;
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}

.step-header p {
    font-size: 13px;
    color: #64748B;
    font-weight: 500;
    line-height: 1.5;
}

.otp-email {
    color: #08B8B0;
    font-weight: 700;
    font-size: 13.5px;
    margin-top: 4px;
    word-break: break-all;
}

/* ==========================================
   ERROR MESSAGE
   ========================================== */
.error-message {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #FEF2F2;
    border: 1px solid #FECACA;
    color: #DC2626;
    padding: 11px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
    text-align: left;
    animation: shake 0.4s;
}

.error-message i {
    font-size: 15px;
    flex-shrink: 0;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

/* ==========================================
   FORMS
   ========================================== */
.auth-form {
    text-align: left;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 12.5px;
    font-weight: 700;
    color: #064B5A;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

/* Input with icon */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper .input-icon {
    position: absolute;
    left: 14px;
    color: #94A3B8;
    font-size: 14px;
    pointer-events: none;
    transition: color 0.2s;
    z-index: 1;
}

.input-wrapper input {
    width: 100%;
    padding: 13px 16px 13px 42px;
    border: 1.5px solid #E2E8F0;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    color: #0F172A;
    background: #F8FAFC;
    outline: none;
    transition: all 0.2s;
    font-weight: 500;
}

.input-wrapper input:focus {
    border-color: #08B8B0;
    background: #FFFFFF;
    box-shadow: 0 0 0 4px rgba(8, 184, 176, 0.12);
}

.input-wrapper input:focus ~ .input-icon,
.input-wrapper:focus-within .input-icon {
    color: #08B8B0;
}

.input-wrapper input::placeholder {
    color: #94A3B8;
    font-weight: 400;
}

/* OTP input special */
#otpInput {
    padding-left: 42px;
    padding-right: 16px;
}

.otp-hint {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    color: #64748B;
    font-weight: 500;
    text-align: center;
}

.otp-hint i {
    color: #08B8B0;
    margin-right: 4px;
}
/* ==========================================
   PRIMARY BUTTON
   ========================================== */
.btn-auth {
    width: 100%;
    background: linear-gradient(135deg, #08B8B0 0%, #064B5A 100%);
    color: #FFFFFF;
    border: none;
    padding: 14px 20px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 14.5px;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.25s;
    margin-top: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 6px 18px rgba(8, 184, 176, 0.3);
    letter-spacing: 0.2px;
    position: relative;
    overflow: hidden;
}

.btn-auth::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-auth:hover::before {
    left: 100%;
}

.btn-auth:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(8, 184, 176, 0.4);
}

.btn-auth:active:not(:disabled) {
    transform: translateY(0);
}

.btn-auth:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* ==========================================
   OTP FOOTER (Resend + Back)
   ========================================== */
.otp-footer {
    text-align: center;
    margin-top: 18px;
}

.otp-footer p {
    font-size: 13px;
    color: #64748B;
    font-weight: 500;
    margin-bottom: 4px;
}

.otp-footer a {
    color: #08B8B0;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.18s;
}

.otp-footer a:hover {
    color: #064B5A;
    text-decoration: underline;
}

.otp-footer a:disabled,
.otp-footer a[style*="pointer-events: none"] {
    color: #94A3B8 !important;
    cursor: not-allowed !important;
    text-decoration: none;
}

.back-link-inline {
    color: #64748B !important;
    font-weight: 600 !important;
    font-size: 12.5px !important;
}

.back-link-inline:hover {
    color: #064B5A !important;
    text-decoration: none !important;
}

.back-link-inline i {
    font-size: 10px;
    margin-right: 4px;
}

/* ==========================================
   BACK TO HOME LINK
   ========================================== */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 22px;
    padding: 8px 14px;
    color: #64748B;
    font-size: 12.5px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.18s;
}

.back-link:hover {
    color: #08B8B0;
    background: #F0FDFA;
}

.back-link i {
    font-size: 11px;
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 500px) {
    body {
        padding: 16px;
    }

    .auth-card {
        padding: 28px 22px 24px;
        border-radius: 16px;
    }

    .auth-logo .logo-icon {
        width: 46px;
        height: 46px;
        font-size: 18px;
    }

    .auth-logo h2 {
        font-size: 22px;
    }

    .step-header h3 {
        font-size: 18px;
    }

    .step-header p {
        font-size: 12.5px;
    }

    .form-group input {
        padding: 12px 14px 12px 40px;
        font-size: 13.5px;
    }

    .input-wrapper .input-icon {
        left: 13px;
        font-size: 13px;
    }

    .btn-auth {
        padding: 13px 18px;
        font-size: 14px;
    }

    .otp-footer p {
        font-size: 12.5px;
    }
}