/*
Theme Name: inLook
Theme URI: https://inlook.app
Author: Amjad Hassan
Author URI: https://inlook.app
Description: A modern email login theme inspired by Outlook, built for the inLook mail platform.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: inlook
Tags: email, login, custom-login, one-column
*/

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --pri: #0078D4;
  --pri-dk: #005A9E;
  --pri-hv: #106EBE;
  --pri-lt: #DEECF9;
  --t1: #1B1B1B;
  --t2: #5E5E5E;
  --t3: #8C8C8C;
  --bg: #F2F2F2;
  --white: #FFFFFF;
  --border: #CCCCCC;
  --link: #0067B8;
  --link-hv: #004578;
  --error: #D83B01;
  --font: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
}

html, body {
  height: 100%;
  font-family: var(--font);
  font-size: 15px;
  color: var(--t1);
  background: var(--bg);
}

/* ══ LOGIN BACKGROUND ══ */
.login-bg {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  padding: 20px;
}

/* ══ LOGIN CARD ══ */
.login-card {
  background: var(--white);
  width: 440px;
  max-width: 100%;
  padding: 44px 44px 36px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  animation: fadeUp 0.35s ease-out;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ══ LOGO ══ */
.logo {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-bottom: 20px;
}

.logo-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon svg {
  width: 24px;
  height: 24px;
}

.logo-text {
  font-size: 22px;
  font-weight: 600;
  color: var(--t1);
  letter-spacing: -0.5px;
}

.logo-text span {
  font-weight: 300;
  color: var(--t2);
}

/* ══ HEADINGS ══ */
.login-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--t1);
  margin-bottom: 4px;
  line-height: 1.3;
}

.login-subtitle {
  font-size: 13px;
  color: var(--t2);
  margin-bottom: 24px;
}

/* ══ FORM ══ */
.form-group {
  margin-bottom: 20px;
}

.form-input {
  width: 100%;
  height: 36px;
  border: none;
  border-bottom: 2px solid var(--border);
  padding: 0 4px;
  font-size: 15px;
  font-family: var(--font);
  color: var(--t1);
  background: transparent;
  outline: none;
  transition: border-color 0.2s;
}

.form-input::placeholder {
  color: var(--t3);
}

.form-input:focus {
  border-bottom-color: var(--pri);
}

.form-error {
  font-size: 12px;
  color: var(--error);
  margin-top: 6px;
  display: none;
}

.form-error.show {
  display: block;
}

/* ══ LINKS ══ */
.help-links {
  margin-bottom: 28px;
}

.help-links a {
  display: block;
  font-size: 13px;
  color: var(--link);
  text-decoration: none;
  margin-bottom: 6px;
}

.help-links a:hover {
  text-decoration: underline;
  color: var(--link-hv);
}

/* ══ BUTTONS ══ */
.btn-next {
  display: block;
  width: 100%;
  height: 36px;
  background: var(--pri);
  color: var(--white);
  border: none;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: background 0.15s;
}

.btn-next:hover {
  background: var(--pri-hv);
}

.btn-next:active {
  background: var(--pri-dk);
}

/* ══ DIVIDER ══ */
.divider {
  display: flex;
  align-items: center;
  margin: 28px 0 20px;
  gap: 12px;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.divider-text {
  font-size: 13px;
  color: var(--t3);
  white-space: nowrap;
}

/* ══ SOCIAL BUTTONS ══ */
.social-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.btn-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 40px;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: 2px;
  font-size: 14px;
  font-family: var(--font);
  color: var(--t1);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.btn-social:hover {
  background: #FAFAFA;
  border-color: #999;
}

.btn-social svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ══ CREATE ACCOUNT ══ */
.create-account {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #E8E8E8;
}

.create-account span {
  font-size: 13px;
  color: var(--t2);
}

.create-account a {
  font-size: 13px;
  color: var(--link);
  text-decoration: none;
  font-weight: 600;
}

.create-account a:hover {
  text-decoration: underline;
  color: var(--link-hv);
}

/* ══ STEP 2: PASSWORD ══ */
.step { display: none; }
.step.active { display: block; }

.user-display {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  cursor: pointer;
}

.user-display .back-arrow {
  font-size: 14px;
  color: var(--t1);
}

.user-display .user-email {
  font-size: 13px;
  color: var(--t1);
}

/* ══ CHECKBOX ══ */
.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0 24px;
}

.checkbox-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--pri);
  cursor: pointer;
}

.checkbox-row label {
  font-size: 13px;
  color: var(--t2);
  cursor: pointer;
}

/* ══ PAGE FOOTER ══ */
.page-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 12px 24px;
  gap: 20px;
  background: transparent;
}

.page-footer a {
  font-size: 12px;
  color: var(--t3);
  text-decoration: none;
}

.page-footer a:hover {
  text-decoration: underline;
  color: var(--t2);
}

/* ══ WP LOGIN OVERRIDES ══ */
.login h1 a {
  display: none;
}

/* ══ RESPONSIVE ══ */
@media (max-width: 480px) {
  .login-card {
    padding: 32px 24px 28px;
  }

  .login-title {
    font-size: 20px;
  }

  .page-footer {
    justify-content: center;
  }
}
