/* Variables converted to CSS custom properties */
:root {
  --primary-bg: hsl(213deg 85% 97%);
  --secondary-bg: hsl(233deg 36% 38%);
  --shadow-color: hsl(231deg 62% 94%);
  --text-color: hsl(0deg 0% 30%);
  --placeholder-color: hsl(0deg 0% 0%);
  --body-bg: hsl(218deg 50% 91%);
}

/* General styles */
* {
  font-family: 'Poppins', sans-serif;
}
body {
  background: url("{{ url_for('static', filename='your_background_image.jpg') }}") no-repeat center center fixed;
  background-size: cover;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  font-family: 'Poppins', sans-serif;
}


.screen-1 {
  background: rgba(255, 255, 255, 0.15); /* semi-transparent white */
  backdrop-filter: blur(15px); /* glass effect */
  -webkit-backdrop-filter: blur(15px);
  padding: 2em;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  gap: 1.5em;
  width: 350px;
}


.screen-1 .logo {
  margin-top: -3em;
}

.screen-1 .username,
.screen-1 .password {
  background: transparent;
  box-shadow: 0 0 2em var(--shadow-color);
  padding: 1em;
  display: flex;
  flex-direction: column;
  gap: 0.5em;
  border-radius: 20px;
  color: var(--text-color);
}

.screen-1 .username {
  margin-top: -3em;
}

.screen-1 .username input,
.screen-1 .password input {
  outline: none;
  border: none;
}

.screen-1 .username input::placeholder,
.screen-1 .password input::placeholder {
  color: var(--placeholder-color);
  font-size: 0.9em;
}

.screen-1 .username ion-icon,
.screen-1 .password ion-icon {
  color: var(--text-color);
  margin-bottom: -0.2em;
}

.screen-1 .password .show-hide {
  margin-right: -5em;
}

.screen-1 .footer {
  display: flex;
  font-size: 0.7em;
  color: hsl(0deg 0% 37%);
  gap: 14em;
  padding-bottom: 10em;
}

.screen-1 .footer span {
  cursor: pointer;
}
.screen-1 .username ion-icon,
.screen-1 .password ion-icon {
  color: var(--text-color);
  font-size: 1.2em; /* Adjust icon size */
  margin-right: 0.5em; /* Space between icon and input field */
}
.screen-1 ion-icon {
  width: 20px;
  height: 20px;
}
input, textarea {
    background-color: none;
}
input:not(:placeholder-shown) {
  background-color: transparent; /* Transparent background */
}
/* Default input styles */


/* Hide background when text is present */
input:not(:placeholder-shown) {
  background-color: transparent; /* Transparent background */
}

/* Focus styles for a modern look */
input:focus {
  outline: none;
  border: 2px solid hsl(233deg 36% 38%);
  box-shadow: 0 0 4px hsl(233deg 36% 60%);
}

/* Placeholder styles (optional) */
input::placeholder {
  color: hsl(0deg 0% 60%);
  font-style: italic;
}
/* Align the eye icon to the left */
.password .sec-2 {
  display: flex;
  align-items: center;
  position: relative;
}

.password .show-hide {
  position: absolute;
  left: 0.5em; /* Adjust the spacing from the left */
  font-size: 1.2em; /* Adjust size as needed */
  color: hsl(0deg 0% 30%);
  cursor: pointer;
  z-index: 1; /* Ensure it's above the input */
}

input {
  flex-grow: 1; /* Allow the input to take available space */
  padding-left: 2em; /* Space for the eye icon */
  margin-right: 0.5em; /* Space for the eye icon */

  width: 250px; /* Set a narrower width */
  height: 25px;
  padding: 0.5em; /* Adjust padding for a balanced look */
  font-size: 1em; /* Keep font size readable */
  border: 1px solid hsl(0deg 0% 80%);
  background: none;
  border-radius: 15px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Center the login button */
button.login {
  display: block; /* Ensures it's treated as a block element */
  margin: 1em auto; /* Auto margins horizontally center it */
  padding: 0.8em 2em; /* Adjust padding for a balanced look */
  background: hsl(233deg 36% 38%);
  color: hsl(0, 0%, 100%);
  border: none;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  text-align: center; /* Ensure text is centered inside the button */
  width: 330px;
  height: 40px;
}
.header {
  display: flex;
  align-items: center; /* Center items vertically */
  gap: 0.5em; /* Spacing between text and icon */
  font-family: 'Poppins', sans-serif; /* Font for the label */
}

.webtop-label {
  font-size: 1.2em; /* Adjust the font size */
  font-weight: bold; /* Make it bold */
  color: #294769; /* Navy blue color for the text */
}

.icon svg {
  width: 24px; /* Set width of the SVG */
  height: 24px; /* Set height of the SVG */
  fill: #294769; /* Match SVG color to the text */
}
.sec-2 {
    display: flex;
    align-items: center;
    gap: 0.5em; /* Spacing between icon and input */
}
.sec-2 ion-icon {
    flex-shrink: 0; /* Prevent icon from shrinking */
    font-size: 1.5em; /* Adjust size of the icon */
    color: var(--text-color);
}

.sec-2 input {
    flex-grow: 1; /* Allow input to take remaining space */
    width: 100%; /* Ensure it adjusts to container width */
    padding: 0.5em; /* Internal padding for input */
    border: none;
    outline: none;
    font-size: 1em; /* Adjust input text size */
}
.username {
    display: flex;
    flex-direction: column;
    gap: 0.5em; /* Space between label and input */
}

.username label {
    font-size: 0.9em; /* Adjust label size */
    color: var(--text-color); /* Match label color */
}
.username,
.password {
    display: flex;
    flex-direction: column;
    padding: 1em;
    gap: 0.8em; /* Space between elements inside */
}
/* login.css */

.sec-2 {
  display: flex;
  align-items: center;
  background-color: white;
  border-radius: 15px;
  padding: 10px;
  direction: rtl; /* very important for Hebrew! */
  gap: 10px;
}

.sec-2 ion-icon {
  font-size: 20px;
  color: #888;
  flex-shrink: 0;
}

.sec-2 input {
  border: none;
  outline: none;
  font-size: 16px;
  flex: 1;
  text-align: right;
  background: transparent;
}














/* Base Variables */
:root {
  --text-color: #294769;
  --outline-color: #294769;
}

/* Reset */
* {
  font-family: 'Poppins', sans-serif;
  box-sizing: border-box;
}
body {
  background: url("{{ url_for('static', filename='login_background.png') }}") no-repeat center center fixed;
  background-size: cover;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

/* Login Container */
.screen-1 {
  background: transparent;
  border: 2px solid var(--outline-color);
  border-radius: 24px;
  padding: 2rem;
  width: 360px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text-color);
}

/* Header */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.webtop-label {
  font-size: 1.2em;
  font-weight: bold;
  color: var(--text-color);
}
.icon svg {
  width: 24px;
  height: 24px;
  fill: var(--text-color);
}

/* Input Section */
.username,
.password {
  display: flex;
  flex-direction: column;
  gap: 0.8em;
}

.sec-2 {
  display: flex;
  align-items: center;
  border: 2px solid var(--outline-color);
  border-radius: 15px;
  padding: 10px;
  background-color: transparent;
  direction: rtl;
  gap: 10px;
}

.sec-2 ion-icon {
  font-size: 20px;
  color: var(--text-color);
  flex-shrink: 0;
}

.sec-2 input {
  border: none;
  outline: none;
  font-size: 16px;
  flex: 1;
  text-align: right;
  background: transparent;
  color: var(--text-color);
}

input::placeholder {
  color: rgba(41, 71, 105, 0.6);
}

/* Eye Toggle */
.password .sec-2 {
  position: relative;
}
.password .show-hide {
  position: absolute;
  left: 10px;
  font-size: 1.2em;
  color: var(--text-color);
  cursor: pointer;
}

/* Button */
button.login {
  margin: 1em auto 0;
  padding: 0.8em 2em;
  background: transparent;
  color: var(--text-color);
  border: 2px solid var(--outline-color);
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  height: 40px;
  transition: background 0.3s ease;
}
button.login:hover {
  background: rgba(41, 71, 105, 0.1);
}










.sec-2 {
  display: flex;
  align-items: center;
  border: 2px solid var(--outline-color);
  border-radius: 15px;
  padding: 10px;
  background-color: transparent; /* <--- this is correct */
  direction: rtl;
  gap: 10px;
}


.username,
.password {
  background: transparent;
  box-shadow: none; /* Optional: remove glow */
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5em;
  border-radius: 0;
  color: var(--text-color);
}



.username,
.password,
button.login,
.sec-2 {
  width: 100%;
  max-width: 320px;
  min-width: 320px;
}









/* Ensures consistent width and center alignment */
.username,
.password,
button.login {
  width: 100%;
  max-width: 320px;
  margin: 0 auto; /* center inside .screen-1 */
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Input container */
.sec-2 {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 2px solid var(--outline-color);
  border-radius: 15px;
  padding: 10px;
  background-color: transparent;
  direction: rtl;
  gap: 10px;
}



















.screen-1 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
  max-width: 400px;
  padding: 2rem;
  border: 2px solid #294769;
  border-radius: 24px;
  backdrop-filter: blur(10px);
  background: transparent;
}

/* Input wrappers */
.username,
.password,
button.login {
  width: 100%;
  max-width: 320px;
}

/* Inner input row */
.sec-2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px;
  border: 2px solid #294769;
  border-radius: 15px;
  background: transparent;
  direction: rtl;
  gap: 10px;
  box-sizing: border-box;
}

/* Icon */
.sec-2 ion-icon {
  font-size: 20px;
  color: #294769;
  flex-shrink: 0;
}

/* Input */
.sec-2 input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  color: #294769;
  font-size: 16px;
  text-align: right;
}

/* Button */
button.login {
  padding: 0.8em 2em;
  height: 40px;
  background: transparent;
  color: #294769;
  border: 2px solid #294769;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

button.login:hover {
  background: rgba(41, 71, 105, 0.1);
}





.webtop-label {
    font-size: 2rem; /* Adjust size as needed */
    font-weight: bold;
    margin-bottom: 5px;
}

.icon svg {
    width: 40px;  /* Increase the size as needed */
    height: 40px;
}






















.show-hide {
    cursor: pointer;
    user-select: none;      /* Standard */
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none;  /* IE 10+ */
}






.login-container, .login-container * {
    user-select: none;             /* Standard */
    -webkit-user-select: none;     /* Safari */
    -moz-user-select: none;        /* Firefox */
    -ms-user-select: none;         /* IE 10+ */
}

