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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e8eaf6 0%, #ede7f6 50%, #e3f2fd 100%);
  padding: 2rem 1rem;
}

.error-message {
	display:none; color:rgb(231, 0, 0); text-align:center;
	font-size: 13px; font-weight: 200;
}

/* Hlavní karta — lehce podbarvená */
.card {
  background: rgba(237, 231, 246, 0.55);
  border-radius: 20px;
  box-shadow: 0 8px 48px rgba(108, 71, 245, 0.12);
  border: 1px solid rgba(255,255,255,0.7);
  width: 100%;
  max-width: 960px;
  display: flex;
  overflow: hidden;
  min-height: 520px;
}

/* LEFT — průhledné, jen text */
.left {
  flex: 1;
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2rem;
  background: rgba(255,255,255,0.7);
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 700;
  color: #2d1b8e;
}

.logo-icon {
  width: 30px;
  height: 30px;
  background: #6c47f5;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
}

.headline {
  font-size: clamp(20px, 2.5vw, 32px);
  font-weight: 800;
  color: #1a1050;
  line-height: 1.25;
}

.headline span { color: #6c47f5; }

.features {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.feat-icon {
  width: 38px;
  height: 38px;
  min-width: 38px;
  background: rgba(255,255,255,0.6);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6c47f5;
  font-size: 19px;
}

.feat-text h3 {
  font-size: 13px;
  font-weight: 700;
  color: #1a1050;
  margin-bottom: 2px;
}

.feat-text p {
  font-size: 12px;
  color: #5a5080;
  line-height: 1.4;
}

.secure {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: #8878bb;
}

.secure i { color: #6c47f5; font-size: 16px; }

.divider-v {
  width: 1px;
  background: rgba(108,71,245,0.12);
  margin: 2rem 0;
}

/* RIGHT — bílý formulářový kontejner */
.right {
  width: 380px;
  min-width: 320px;
  padding: 3rem 2.5rem;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.1rem;
  position: relative;
  overflow: hidden;
}

/* Animace přepínání */
@keyframes slideInDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideInUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(-8px); max-height: 0; margin-bottom: 0; }
  to   { opacity: 1; transform: translateY(0);   max-height: 60px; margin-bottom: 0; }
}
@keyframes fadeSlideOut {
  from { opacity: 1; transform: translateY(0);   max-height: 60px; }
  to   { opacity: 0; transform: translateY(-8px); max-height: 0; }
}

.form-title {
  font-size: 20px;
  font-weight: 700;
  color: #1a1050;
  text-align: left;
  animation: slideInDown 0.3s ease;
}

.subtitle {
  font-size: 13px;
  color: #999;
  text-align: left;
  animation: slideInDown 0.35s ease;
}

.subtitle a {
  color: #6c47f5;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
}

.subtitle a:hover { text-decoration: underline; }

.fields {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.field {
  position: relative;
  display: flex;
  align-items: center;
}

.field .fi {
  position: absolute;
  left: 11px;
  font-size: 17px;
  color: #bbb;
  pointer-events: none;
}

.field input {
  width: 100%;
  padding: 11px 11px 11px 37px;
  border: 1.5px solid #e8e4f6;
  border-radius: 10px;
  font-size: 13px;
  color: #1a1050;
  background: #faf9ff;
  outline: none;
  transition: border-color 0.2s;
  font-family: inherit;
}

.field input:focus {
  border-color: #6c47f5;
  background: #fff;
}

.field input::placeholder { color: #ccc; }

.eye {
  position: absolute;
  right: 11px;
  font-size: 17px;
  color: #ccc;
  cursor: pointer;
  user-select: none;
}

/* Extra pole animace */
.extra-field {
  display: flex;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transition: max-height 0.35s cubic-bezier(0.4,0,0.2,1),
			  opacity 0.3s ease,
			  margin 0.3s ease;
  margin-bottom: 0;
}

.extra-field.visible {
  max-height: 60px;
  opacity: 1;
  pointer-events: auto;
  animation: fadeSlideIn 0.35s cubic-bezier(0.4,0,0.2,1) forwards;
}

.row-check {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.row-check label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: #777;
  cursor: pointer;
}

.row-check input[type="checkbox"] {
  accent-color: #6c47f5;
  width: 14px;
  height: 14px;
}

.row-check a {
  font-size: 12px;
  color: #6c47f5;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s;
}

.row-check a:hover { text-decoration: underline; }
.row-check a.hidden { opacity: 0; pointer-events: none; }

.btn-primary {
  width: 100%;
  padding: 12px;
  background: #6c47f5;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  font-family: inherit;
}

.btn-primary:hover { background: #5535d4; }
.btn-primary:active { transform: scale(0.98); }

.sep {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #ccc;
}

.sep::before, .sep::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #eee;
}

.btn-google {
  width: 100%;
  padding: 11px;
  background: #fff;
  border: 1.5px solid #e8e4f6;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  color: #444;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  transition: border-color 0.2s;
  font-family: inherit;
}

.btn-google:hover { border-color: #bbb; }

.footer {
  text-align: center;
  font-size: 11px;
  color: #bbb;
  margin-top: 1.5rem;
}

/* Animace celého formuláře při přepnutí */
.right.animating {
  animation: slideInUp 0.3s ease;
}

/* RESPONSIVE */
@media (max-width: 680px) {
  body {
	justify-content: flex-start;
	padding: 2rem 1rem;
  }

  .card {
	flex-direction: column;
	box-shadow: none;
	background: transparent;
	border: none;
	gap: 1.5rem;
	min-height: unset;
  }

  .divider-v { display: none; }

  .left {
	padding: 0;
	gap: 1rem;
  }

  .left .features,
  .left .secure { display: none; }

  .right {
	width: 100%;
	min-width: 0;
	padding: 1.5rem;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 4px 24px rgba(108, 71, 245, 0.10);
  }
}

.lang-select-wrap {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 7px;
  background: var(--surface);
  border: 1.5px solid #e8e4f6;
  border-radius: 8px;
  padding: 6px 10px 6px 12px;
  color: var(--text-muted);
  transition: border-color 0.15s;
}
.lang-select-wrap:focus-within {
  border-color: var(--purple);
}

.lang-select {
  all: unset;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
  padding-right: 18px;
  width: auto;
}