
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&display=swap');

/* ==========================================
   MYTIKTOKCOACH
   LOGIN PAGE - INDEX.CSS
   ========================================== */

:root {
  --bg: #080a10;
  --bg-dark: #090c14;
  --bg-panel: #0d111b;
  --surface: #151925;
  --surface-hover: #1c2230;

  --cyan: #00e5e5;
  --cyan-light: #67f5f2;
  --pink: #ff287b;

  --white: #ffffff;
  --text: #f4f6fb;
  --muted: #939aab;
  --muted-dark: #6e7688;

  --border: rgba(255, 255, 255, 0.09);
  --success: #26d9a0;
  --error: #ff657e;

  --font-body: 'DM Sans', sans-serif;
  --font-heading: 'Outfit', sans-serif;

  --radius: 14px;
  --transition: 0.2s ease;
}

/* ==========================================
   RESET
   ========================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

[hidden] {
  display: none !important;
}

/* ==========================================
   MAIN PAGE LAYOUT
   ========================================== */

.login-page {
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  min-height: 100vh;
}

/* ==========================================
   LEFT BRAND PANEL
   ========================================== */

.brand-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  overflow: hidden;

  padding: 48px clamp(30px, 5vw, 90px);

  background:
    radial-gradient(
      ellipse at 12% 15%,
      rgba(0, 229, 229, 0.12),
      transparent 48%
    ),
    radial-gradient(
      ellipse at 88% 82%,
      rgba(255, 40, 123, 0.10),
      transparent 50%
    ),
    var(--bg-panel);

  border-right: 1px solid var(--border);
}

.brand-panel::before {
  content: "";
  position: absolute;
  inset: 0;

  background-image:
    linear-gradient(
      rgba(255, 255, 255, 0.022) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.022) 1px,
      transparent 1px
    );

  background-size: 46px 46px;
  pointer-events: none;

  mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.65),
    transparent 85%
  );
}

.brand-panel::after {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  top: 32%;
  right: -190px;

  border: 1px solid rgba(0, 229, 229, 0.11);
  border-radius: 50%;

  box-shadow:
    0 0 0 65px rgba(0, 229, 229, 0.018),
    0 0 0 130px rgba(255, 40, 123, 0.012);

  pointer-events: none;
}

.brand-content,
.brand-footer {
  position: relative;
  z-index: 1;
}

.brand-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* ==========================================
   CODE-BASED LOGO
   ========================================== */

.mtc-logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  max-width: 100%;
}

.brand-logo.mtc-logo {
  width: auto;
  height: auto;
  margin-bottom: clamp(55px, 10vh, 115px);
}

.mtc-logo-icon {
  width: 58px;
  height: 58px;
  flex-shrink: 0;

  filter: drop-shadow(
    0 0 12px rgba(0, 229, 229, 0.13)
  );

  transition:
    transform 0.3s ease,
    filter 0.3s ease;
}

.mtc-logo:hover .mtc-logo-icon {
  transform: translateY(-2px);

  filter: drop-shadow(
    0 0 18px rgba(0, 229, 229, 0.27)
  );
}

.mtc-logo-text {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.mtc-logo-name {
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -1.2px;
  line-height: 1.05;
  white-space: nowrap;
}

.mtc-logo-name .accent {
  color: var(--cyan);
}

.mtc-logo-tagline {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ==========================================
   BRAND MESSAGE
   ========================================== */

.brand-message {
  max-width: 540px;
}

.eyebrow,
.welcome-label {
  display: inline-block;

  color: var(--cyan);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
}

.brand-message h1 {
  margin-top: 20px;

  font-family: var(--font-heading);
  font-size: clamp(40px, 4.3vw, 68px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -2px;
}

.gradient-text {
  background: linear-gradient(
    105deg,
    var(--cyan) 5%,
    #67dff1 48%,
    var(--pink) 100%
  );

  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-message p {
  max-width: 440px;
  margin-top: 23px;

  color: #a8b0c1;
  font-size: 16px;
  line-height: 1.8;
}

/* ==========================================
   PLATFORM FEATURES
   ========================================== */

.brand-features {
  display: flex;
  flex-direction: column;
  gap: 18px;

  margin-top: 43px;
}

.feature {
  display: flex;
  align-items: center;
  gap: 13px;

  color: #d4d9e5;
  font-size: 14px;
  font-weight: 500;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 28px;
  height: 28px;
  flex-shrink: 0;

  color: var(--cyan);
  background: rgba(0, 229, 229, 0.08);
  border: 1px solid rgba(0, 229, 229, 0.20);
  border-radius: 50%;

  font-size: 13px;
  font-weight: 800;
}

/* ==========================================
   LEFT FOOTER
   ========================================== */

.brand-footer {
  margin-top: 65px;

  color: #737b8e;
  font-size: 12px;
}

/* ==========================================
   RIGHT LOGIN PANEL
   ========================================== */

.login-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  min-width: 0;
  padding: 50px 35px;

  background:
    radial-gradient(
      ellipse at 90% 10%,
      rgba(255, 40, 123, 0.04),
      transparent 48%
    ),
    var(--bg);
}

.login-card {
  width: 100%;
  max-width: 430px;
}

.mobile-brand {
  display: none;
}

/* ==========================================
   LOGIN HEADER
   ========================================== */

.login-header {
  margin-bottom: 35px;
}

.login-header h2 {
  margin-top: 14px;

  font-family: var(--font-heading);
  font-size: clamp(27px, 2.5vw, 35px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.8px;
}

.login-header p {
  margin-top: 11px;

  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

/* ==========================================
   FORM ELEMENTS
   ========================================== */

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

.form-group label {
  display: block;
  margin-bottom: 10px;

  color: #dce1ed;
  font-size: 13px;
  font-weight: 700;
}

.label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.label-row label {
  margin-bottom: 10px;
}

.form-group input {
  width: 100%;
  height: 53px;

  padding: 0 16px;

  color: var(--white);
  background: var(--surface);

  border: 1px solid var(--border);
  border-radius: 11px;

  outline: none;
  font-size: 14px;

  transition:
    border-color var(--transition),
    background var(--transition),
    box-shadow var(--transition);
}

.form-group input::placeholder {
  color: var(--muted-dark);
}

.form-group input:hover {
  background: var(--surface-hover);
}

.form-group input:focus {
  border-color: var(--cyan);

  box-shadow:
    0 0 0 3px rgba(0, 229, 229, 0.10);
}

.form-group input:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* ==========================================
   PASSWORD FIELD
   ========================================== */

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 75px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 13px;
  transform: translateY(-50%);

  padding: 7px 5px;

  color: var(--muted);
  background: transparent;
  border: none;

  font-size: 12px;
  font-weight: 700;

  transition: color var(--transition);
}

.password-toggle:hover {
  color: var(--cyan);
}

.text-button {
  padding: 0;
  margin-bottom: 10px;

  color: var(--cyan);
  background: none;
  border: none;

  font-size: 12px;
  font-weight: 700;

  transition: opacity var(--transition);
}

.text-button:hover {
  opacity: 0.75;
}

/* ==========================================
   SIGN IN BUTTON
   ========================================== */

.login-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;

  width: 100%;
  height: 54px;
  margin-top: 10px;

  color: #071015;

  background: linear-gradient(
    110deg,
    #00e5e5,
    #4be5ee
  );

  border: none;
  border-radius: 11px;

  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 800;

  box-shadow:
    0 8px 25px rgba(0, 229, 229, 0.10);

  transition:
    transform var(--transition),
    box-shadow var(--transition),
    opacity var(--transition);
}

.login-button:hover:not(:disabled) {
  transform: translateY(-2px);

  box-shadow:
    0 12px 30px rgba(0, 229, 229, 0.22);
}

.login-button:active:not(:disabled) {
  transform: translateY(0);
}

.login-button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.button-arrow {
  font-size: 21px;
  line-height: 1;
}

/* ==========================================
   AUTHENTICATION MESSAGES
   ========================================== */

.auth-message {
  padding: 13px 15px;
  margin-bottom: 23px;

  border-radius: 10px;

  font-size: 13px;
  line-height: 1.6;
}

.auth-message.error {
  color: #ffc3ce;
  background: rgba(255, 101, 126, 0.09);
  border: 1px solid rgba(255, 101, 126, 0.25);
}

.auth-message.success {
  color: #b0ffe5;
  background: rgba(38, 217, 160, 0.08);
  border: 1px solid rgba(38, 217, 160, 0.25);
}

.auth-message.info {
  color: #b9f7fa;
  background: rgba(0, 229, 229, 0.07);
  border: 1px solid rgba(0, 229, 229, 0.20);
}

/* ==========================================
   DIVIDER
   ========================================== */

.login-divider {
  position: relative;
  margin: 34px 0 26px;
  text-align: center;
}

.login-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;

  height: 1px;
  background: var(--border);
}

.login-divider span {
  position: relative;
  z-index: 1;

  padding: 0 14px;

  color: var(--muted-dark);
  background: var(--bg);

  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.3px;
}

/* ==========================================
   SUPPORT MESSAGE
   ========================================== */

.support-message {
  text-align: center;
}

.support-message p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.support-message a {
  margin-left: 4px;
  color: var(--cyan);
  font-weight: 700;
}

.support-message a:hover {
  text-decoration: underline;
}

/* ==========================================
   RIGHT FOOTER
   ========================================== */

.login-footer {
  margin-top: 65px;
  text-align: center;
}

.login-footer p {
  color: #646d7f;
  font-size: 11px;
}

/* ==========================================
   ACCESSIBILITY
   ========================================== */

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

/* ==========================================
   TABLET RESPONSIVENESS
   ========================================== */

@media (max-width: 1050px) {

  .login-page {
    grid-template-columns: 1fr 1fr;
  }

  .brand-panel {
    padding: 40px 30px;
  }

  .mtc-logo-icon {
    width: 48px;
    height: 48px;
  }

  .mtc-logo-name {
    font-size: 23px;
  }

  .brand-logo.mtc-logo {
    margin-bottom: 70px;
  }

  .brand-message h1 {
    font-size: 43px;
  }

  .brand-message p {
    font-size: 14px;
  }

  .login-panel {
    padding: 40px 28px;
  }
}

/* ==========================================
   MOBILE RESPONSIVENESS
   ========================================== */

@media (max-width: 760px) {

  .login-page {
    display: block;
    min-height: 100vh;
  }

  .brand-panel {
    display: none;
  }

  .login-panel {
    min-height: 100vh;
    padding: 35px 22px;
    justify-content: center;
  }

  .login-card {
    max-width: 430px;
  }

  .mobile-brand {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
  }

  .mobile-brand .mtc-logo {
    justify-content: center;
  }

  .mtc-logo-icon {
    width: 54px;
    height: 54px;
  }

  .mtc-logo-name {
    font-size: 25px;
  }

  .mtc-logo-tagline {
    font-size: 9px;
  }

  .login-header {
    margin-bottom: 30px;
  }

  .login-header h2 {
    font-size: 30px;
  }

  .login-footer {
    margin-top: 55px;
  }
}

/* ==========================================
   SMALL PHONES
   ========================================== */

@media (max-width: 390px) {

  .login-panel {
    padding: 26px 17px;
  }

  .mtc-logo {
    gap: 10px;
  }

  .mtc-logo-icon {
    width: 42px;
    height: 42px;
  }

  .mtc-logo-name {
    font-size: 21px;
  }

  .mtc-logo-tagline {
    font-size: 8px;
    letter-spacing: 1.5px;
  }

  .login-header h2 {
    font-size: 27px;
  }

  .form-group input {
    height: 50px;
  }

  .login-button {
    height: 51px;
  }
}

/* ==========================================
   REDUCED MOTION
   ========================================== */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
