/* ==========================================================================
   AUTHENTICATION PAGES (LOGIN / REGISTER) - INDOCHINE
   ========================================================================== */

.auth-page-area {
   background: linear-gradient(180deg, #f8fafc 0%, #edf2f7 100%);
   min-height: calc(100vh - 220px);
   padding: 50px 0 80px 0;
   position: relative;
   overflow: hidden;
}

/* Background subtle decorative gradients */
.auth-page-area::before {
   content: "";
   position: absolute;
   top: -120px;
   right: -100px;
   width: 400px;
   height: 400px;
   border-radius: 50%;
   background: radial-gradient(circle, rgba(3, 89, 78, 0.06) 0%, rgba(3, 89, 78, 0) 70%);
   pointer-events: none;
}

.auth-page-area::after {
   content: "";
   position: absolute;
   bottom: -120px;
   left: -100px;
   width: 400px;
   height: 400px;
   border-radius: 50%;
   background: radial-gradient(circle, rgba(26, 182, 157, 0.07) 0%, rgba(26, 182, 157, 0) 70%);
   pointer-events: none;
}

.auth-card-wrap {
   position: relative;
   z-index: 2;
}

.auth-card-wrap.auth-card-login {
   max-width: 450px;
   margin: 0 auto;
}

.auth-card-wrap.auth-card-register {
   max-width: 580px;
   margin: 0 auto;
}

.auth-card {
   background: #ffffff;
   border: 1px solid rgba(226, 232, 240, 0.95);
   border-radius: 18px;
   padding: 38px 36px 34px 36px;
   box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.07), 0 4px 6px -2px rgba(15, 23, 42, 0.02);
   transition: box-shadow 0.3s ease;
}

@media (max-width: 575px) {
   .auth-page-area {
      padding: 30px 0 50px 0;
   }
   .auth-card {
      padding: 26px 18px 22px 18px;
      border-radius: 14px;
   }
}

/* Header */
.auth-header {
   text-align: center;
   margin-bottom: 24px;
}

.auth-badge-icon {
   width: 52px;
   height: 52px;
   border-radius: 14px;
   background: rgba(3, 89, 78, 0.08);
   color: #03594E;
   display: inline-flex;
   align-items: center;
   justify-content: center;
   font-size: 22px;
   margin-bottom: 12px;
   transition: transform 0.3s ease, background-color 0.3s ease;
}

.auth-badge-icon:hover {
   transform: scale(1.05);
   background: rgba(3, 89, 78, 0.12);
}

.auth-title {
   font-size: 23px;
   font-weight: 700;
   color: #0f172a;
   margin-bottom: 6px;
   letter-spacing: -0.01em;
   font-family: inherit;
}

.auth-subtitle {
   font-size: 13.5px;
   color: #64748b;
   margin-bottom: 0;
   line-height: 1.45;
}

/* Alerts */
.auth-alert {
   padding: 12px 14px;
   border-radius: 10px;
   font-size: 13.5px;
   margin-bottom: 20px;
   text-align: left;
}

.auth-alert-danger {
   background-color: #fef2f2;
   border: 1px solid #fee2e2;
   color: #991b1b;
}

.auth-alert-success {
   background-color: #ecfdf5;
   border: 1px solid #d1fae5;
   color: #065f46;
}

.auth-alert-info {
   background-color: #eff6ff;
   border: 1px solid #dbeafe;
   color: #1e40af;
}

.auth-alert-warning {
   background-color: #fffbeb;
   border: 1px solid #fef3c7;
   color: #b45309;
}

/* Form Fields */
.auth-field {
   margin-bottom: 18px;
   text-align: left;
}

.auth-label {
   display: block;
   font-size: 13.5px;
   font-weight: 600;
   color: #334155;
   margin-bottom: 6px;
}

.auth-label .required {
   color: #ef4444;
   margin-left: 2px;
}

.auth-input-group {
   position: relative;
   display: flex;
   align-items: center;
   width: 100%;
}

.auth-input-icon {
   position: absolute;
   left: 14px;
   top: 50%;
   transform: translateY(-50%);
   color: #94a3b8;
   font-size: 15px;
   pointer-events: none;
   transition: color 0.2s ease;
   z-index: 1;
}

.auth-input-control {
   width: 100%;
   height: 46px;
   border: 1.5px solid #e2e8f0;
   border-radius: 10px;
   background-color: #f8fafc;
   font-size: 14px;
   color: #1e293b;
   padding-left: 42px;
   padding-right: 14px;
   transition: all 0.2s ease;
   outline: none;
   box-sizing: border-box;
}

.auth-input-control.has-toggle {
   padding-right: 44px;
}

.auth-input-control:focus {
   background-color: #ffffff;
   border-color: #03594E;
   box-shadow: 0 0 0 3px rgba(3, 89, 78, 0.12);
}

.auth-input-group:focus-within .auth-input-icon {
   color: #03594E;
}

.auth-input-control::placeholder {
   color: #94a3b8;
   font-size: 13.5px;
}

.auth-input-control:-webkit-autofill,
.auth-input-control:-webkit-autofill:hover, 
.auth-input-control:-webkit-autofill:focus {
   -webkit-box-shadow: 0 0 0px 1000px #f8fafc inset !important;
   -webkit-text-fill-color: #1e293b !important;
   transition: background-color 5000s ease-in-out 0s;
}

/* Password Toggle */
.auth-password-toggle {
   position: absolute;
   right: 8px;
   top: 50%;
   transform: translateY(-50%);
   background: transparent;
   border: none;
   padding: 6px 8px;
   color: #94a3b8;
   cursor: pointer;
   border-radius: 6px;
   display: flex;
   align-items: center;
   justify-content: center;
   transition: all 0.2s ease;
   font-size: 15px;
   z-index: 2;
}

.auth-password-toggle:hover {
   color: #03594E;
   background: rgba(3, 89, 78, 0.06);
}

/* Options Row (Remember / Forgot) */
.auth-options {
   display: flex;
   align-items: center;
   justify-content: space-between;
   margin-bottom: 22px;
   flex-wrap: wrap;
   gap: 8px;
}

.auth-checkbox-wrap {
   display: flex;
   align-items: center;
   gap: 8px;
}

.auth-checkbox-wrap input[type="checkbox"] {
   width: 16px;
   height: 16px;
   accent-color: #03594E;
   cursor: pointer;
   border-radius: 4px;
   margin-top: 0;
}

.auth-checkbox-label {
   font-size: 13.5px;
   color: #475569;
   cursor: pointer;
   user-select: none;
   margin-bottom: 0;
   font-weight: 500;
}

.auth-link {
   font-size: 13.5px;
   font-weight: 600;
   color: #03594E;
   text-decoration: none;
   transition: color 0.2s ease;
}

.auth-link:hover {
   color: #023d35;
   text-decoration: underline;
}

/* Submit Button */
.auth-btn-primary {
   width: 100%;
   height: 46px;
   background: #03594E;
   color: #ffffff;
   border: none;
   border-radius: 10px;
   font-size: 15px;
   font-weight: 600;
   letter-spacing: 0.01em;
   display: flex;
   align-items: center;
   justify-content: center;
   gap: 8px;
   cursor: pointer;
   box-shadow: 0 4px 14px rgba(3, 89, 78, 0.25);
   transition: all 0.25s ease;
}

.auth-btn-primary:hover {
   background: #02463e;
   transform: translateY(-1px);
   box-shadow: 0 6px 18px rgba(3, 89, 78, 0.35);
   color: #ffffff;
}

.auth-btn-primary:active {
   transform: translateY(0);
   box-shadow: 0 2px 8px rgba(3, 89, 78, 0.2);
}

.auth-btn-primary:focus {
   outline: none;
   box-shadow: 0 0 0 3px rgba(3, 89, 78, 0.35);
}

/* Divider */
.auth-divider {
   display: flex;
   align-items: center;
   text-align: center;
   margin: 20px 0;
   color: #94a3b8;
   font-size: 12px;
   text-transform: uppercase;
   font-weight: 600;
   letter-spacing: 0.05em;
}

.auth-divider::before,
.auth-divider::after {
   content: "";
   flex: 1;
   border-bottom: 1px solid #e2e8f0;
}

.auth-divider span {
   padding: 0 12px;
}

/* Google Button */
.auth-btn-google {
   width: 100%;
   height: 46px;
   background: #ffffff;
   border: 1.5px solid #e2e8f0;
   border-radius: 10px;
   font-size: 14px;
   font-weight: 500;
   color: #334155;
   display: flex;
   align-items: center;
   justify-content: center;
   gap: 10px;
   cursor: pointer;
   transition: all 0.2s ease;
   text-decoration: none;
}

.auth-btn-google:hover {
   background: #f8fafc;
   border-color: #cbd5e1;
   color: #0f172a;
   box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.auth-btn-google.is-loading {
   opacity: 0.75;
   pointer-events: none;
   cursor: wait;
   background: #f1f5f9;
}

/* Switch Text */
.auth-switch-text {
   text-align: center;
   margin-top: 20px;
   margin-bottom: 0;
   font-size: 13.5px;
   color: #64748b;
}

.auth-switch-text a {
   color: #03594E;
   font-weight: 600;
   text-decoration: none;
   margin-left: 4px;
}

.auth-switch-text a:hover {
   text-decoration: underline;
   color: #023d35;
}
