/* auth-styles.css - Exclusive Styles for Login and Registration Pages */

.auth-body {
    --app-header-height: 80px;
    display: flex;
  flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    padding: calc(20px + var(--app-header-height)) 20px 20px;
    background-color: var(--bg-body);
    background-image: radial-gradient(circle at 20% 10%, rgba(0, 119, 200, 0.18) 0%, rgba(0, 119, 200, 0.00) 55%),
        radial-gradient(circle at 90% 20%, rgba(0, 119, 200, 0.10) 0%, rgba(0, 119, 200, 0.00) 45%);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.auth-body--login {
    background-image: none;
}

.auth-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    user-select: none;
}

.auth-bg__slide {
    position: absolute;
    top: -2%;
    left: -2%;
    right: -2%;
    bottom: -2%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transform: scale(1.08);
    transition: opacity 1.2s ease;
    will-change: opacity, transform;
}

.auth-bg__slide.is-active {
    opacity: 1;
    transform: scale(1);
    transition: opacity 1.2s ease, transform 9s ease-out;
}

.auth-bg__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.76);
    backdrop-filter: blur(1px);
}

.no-drag {
    -webkit-user-drag: none;
    user-select: none;
    -webkit-touch-callout: none;
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    .auth-bg__slide,
    .auth-bg__slide.is-active {
        transition: none;
        transform: none;
    }
}

.auth-body .brand-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--app-header-height);
  background: var(--app-header-bg);
  color: var(--app-header-fg);
  z-index: 80;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.auth-body .brand-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 18px;
  width: 100%;
  box-sizing: border-box;
}

.auth-body .brand-header__logos {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 320px;
}

.auth-body .brand-header__nav {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.auth-body .brand-header__link {
  color: var(--app-header-fg-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  padding: 8px 10px;
  border-radius: 10px;
  transition: background-color 0.2s, color 0.2s;
}

.auth-body .brand-header__link:hover {
  color: var(--app-header-fg);
  background: rgba(255, 255, 255, 0.10);
}

.auth-body .brand-header__logo--invert {
  filter: brightness(0) invert(1);
}

.auth-body .brand-header__divider {
  width: 1px;
  height: 38px;
  background: rgba(255, 255, 255, 0.22);
}

@media (max-width: 860px) {
  .auth-body .brand-header__nav {
    display: none;
  }
}

.auth-body .brand-header__logo--main {
    height: 58px;
}

.auth-body .brand-header__logo--partner {
    height: 46px;
}

.auth-body .brand-header__divider {
    height: 48px;
}

@media (max-width: 640px) {
    .auth-body {
        --app-header-height: 72px;
    }
    .auth-body .brand-header__logo--main {
        height: 52px;
    }
    .auth-body .brand-header__logo--partner {
        height: 40px;
    }
    .auth-body .brand-header__divider {
        height: 42px;
    }
}

.auth-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2.5rem;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 18px 40px rgba(2, 6, 23, 0.14), 0 6px 14px rgba(2, 6, 23, 0.08);
    position: relative;
    z-index: 10;
    backdrop-filter: blur(6px);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-brand-logo {
    height: 64px;
    width: auto;
    display: block;
    margin: 0 auto 12px;
}

@media (max-width: 640px) {
    .auth-brand-logo {
        height: 56px;
        margin-bottom: 10px;
    }
}

.auth-header h1 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: var(--text-main);
}

.auth-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.auth-logo-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
    display: inline-block;
}

.auth-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
    display: inline-block;
}

/* Input with Icons */
.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 1rem;
    color: var(--text-muted);
    pointer-events: none;
    z-index: 10;
}

.form-input.input-with-icon {
    padding-left: 2.75rem;
}

/* Form Elements */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
    background-color: var(--bg-input);
    color: var(--text-main);
    font-size: 1rem;
    box-sizing: border-box;
    transition: all 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 119, 200, 0.18);
}

/* Auth Buttons */
.btn-submit {
    width: 100%;
    padding: 0.85rem;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-submit:hover {
    background-color: var(--primary-dark);
}

/* Links */
.forgot-password {
    text-align: right;
    margin-bottom: 1.5rem;
}

.forgot-password a {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.85rem;
}

.forgot-password a:hover {
    text-decoration: underline;
}

.back-link {
    display: block;
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
}

.back-link:hover {
    color: var(--primary);
}

/* Register Section */
.register-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.register-title {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.register-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.btn-register {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background-color: rgba(0, 119, 200, 0.06);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    text-decoration: none;
    color: var(--text-muted);
    transition: all 0.2s;
    text-align: center;
    gap: 0.5rem;
}

.btn-register:hover {
    background-color: rgba(0, 119, 200, 0.10);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.btn-register i {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.btn-register span {
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.2;
}

/* Utilities specific to Auth */
.text-warning-icon { color: var(--warning) !important; }
.text-success-icon { color: var(--success) !important; }
.opacity-70 { opacity: 0.7; font-weight: 400; }

.terms-link {
    display: block;
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-decoration: none;
    opacity: 0.6;
}

.terms-link:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Messages */
.error-msg {
    background-color: rgba(239, 68, 68, 0.08);
    color: var(--danger);
    padding: 0.75rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    text-align: center;
    border: 1px solid rgba(239, 68, 68, 0.20);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.success-msg, .message-box.success {
    background-color: rgba(16, 185, 129, 0.10);
    color: var(--success);
    padding: 0.75rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    text-align: center;
    border: 1px solid rgba(16, 185, 129, 0.20);
}

.success-msg a, .error-msg a {
    color: inherit;
    font-weight: 700;
    text-decoration: underline;
}

.success-msg a:hover, .error-msg a:hover {
    opacity: 0.8;
}

.manual-verify-box {
    margin-top: 12px;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid color-mix(in srgb, var(--border-color) 80%, transparent);
    background: color-mix(in srgb, var(--bg-card) 88%, var(--primary) 12%);
    color: var(--text-main);
    text-align: center;
}

.manual-verify-box strong {
    display: block;
    color: var(--text-main);
    margin-bottom: 6px;
}

.manual-verify-box small {
    display: block;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.manual-verify-link {
    display: inline-block;
    margin-top: 5px;
    font-size: 1.1em;
    color: #ffffff !important;
    background-color: var(--primary);
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none !important;
    border: 1px solid color-mix(in srgb, var(--primary) 60%, #000000);
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.manual-verify-link:hover {
    background-color: var(--primary-dark);
    text-decoration: none;
    transform: translateY(-1px);
}

.role-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    border: 1px solid currentColor;
    background-color: rgba(255, 255, 255, 0.05);
}

.auth-links {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.auth-links a {
    color: var(--primary);
    text-decoration: none;
}

.auth-links a:hover {
    text-decoration: underline;
}
