:root {
    --primary-color: #f06b1e;
    --primary-dark: #ffae19;
    --primary-light: #fa6a16;
    --primary-transparent: rgba(247, 145, 158, 0.2);
    --text-light: #ffffff;
    --text-dark: #464646;
    --bg-dark: #1a1a1a;
    --bg-light: #ffffff71;
    --error-color: #ff2d2d;
    --facebook-color: #3b5998;
    --google-color: #db4437;
    --twitter-color: #1da1f2;
    --h2: black;
    --border:#7c7c7c;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Open Sans", sans-serif;
}

body {
    min-height: 100vh;
    background: url("from/white-image.png") no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-family: 'Open Sans', sans-serif;
}

.from-container {
    margin-top: 30px;
    margin-bottom: 30px;
    width: 100%;
    max-width: 550px;
    background-color: var(--bg-light);
    /* border: 1px solid var(--primary-light); */
    border-radius: 15px;
    padding: 30px;
    padding-left: 70px;
    padding-right: 70px;
    color: var(--text-dark);
    box-shadow: #1a1a1a15 0px 2px 5px 0px;;
    /* box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2); */
}

.logo img {
   
    border-radius: 0%;
   
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    box-shadow: 0 4px 24px 0 rgba(247, 145, 158, 0.03);
    overflow: hidden;
    padding: 15px;
}

h2 {
    text-align: center;
    margin-bottom: 25px;
    font-weight: 700;
    color: var(--h2);
    margin-top: -40px;
}

.subtitle {
    text-align: center;
    margin-bottom: 25px;
    margin-top:-20px ;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
}

.error-message { color: red; font-size: 13px; margin-top: 3px; display: block; }
    .error { border-color: red !important; }
    .g_id_signin { width: 100%; display: flex; justify-content: center; margin: 15px 0; }
    .divider { display: flex; align-items: center; margin: 20px 0; }
    .divider::before, .divider::after { content: ""; flex: 1; border-bottom: 1px solid #ddd; }
    .divider span { padding: 0 10px; color: #777; }
    .loading { display: none; margin-left: 10px; }
    .remember-me {
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 14px;
      margin: 15px 0 10px;
    }
    .remember-me label {
      display: flex;
      align-items: center;
      gap: 6px;
      color: #444;
    }
    .remember-me input[type="checkbox"] {
      accent-color: var(--primary);
      transform: scale(1.1);
    }
    .forgot-link a {
      color: var(--accent);
      font-size: 13px;
      text-decoration: none;
    }
    .forgot-link a:hover {
      text-decoration: underline;
    }





.otp-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 25px;
}

.otp-input {
    width: 50px;
    height: 60px;
    text-align: center;
    font-size: 24px;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid var(--primary-light);
    border-radius: 5px;
    color: var(--text-dark);
    outline: none;
    transition: all 0.3s ease;
}

.otp-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-transparent);
    transform: translateY(-2px);
}

.otp-input.error {
    border-color: var(--error-color);
}

.timer {
    text-align: center;
    margin-bottom: 25px;
    color: var(--text-dark);
}

.timer span {
    color: var(--primary-color);
    font-weight: 600;
}

.input-group {
    position: relative;
    margin-bottom: 25px;
    
}

.input-group input {
    width: 100%;
    padding: 10px 8px 10px 40px;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid var(--border);
    border-radius: 5px;
    color: var(--text-dark);
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
}

.input-group input:focus {
    border-color: var(--primary-color);
    
}

.input-group input.error {
    border-color: var(--error-color);
}

.input-group label {
    position: absolute;
    top: 50%;
    left: 40px;
    transform: translateY(-50%);
    color: var(--text-dark);
    pointer-events: none;
    transition: all 0.3s ease;
    background: transparent;
    padding: 0 5px;
    font-size: 15px;
}

.input-group input:focus + label,
.input-group input:not(:placeholder-shown) + label,
.input-group input.has-value + label {
    top: 0;
    left: 30px;
    font-size: 12px;
    background: rgb(255, 255, 255);
    color: var(--primary-dark);
    transform: translateY(-50%);
}

.input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--border);
    font-size: 18px;
    transition: all 0.3s ease;
}

.input-group input.error ~ .input-icon {
    top: 18px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-dark);
    font-size: 18px;
    cursor: pointer;
    z-index: 2;
    transition: all 0.3s ease;
}

.input-group input.error ~ .password-toggle {
    top: 18px;
}

.password-toggle:hover {
    color: var(--primary-color);
}

button {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 5px;
    background: var(--primary-color);
    color: var(--text-light);
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
}

button:hover {
    background: var(--primary-dark);
    color: var(--text-light);
}

.resend-link {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
}

.resend-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.resend-link a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.resend-link a.disabled {
    color: var(--text-dark);
    opacity: 0.5;
    pointer-events: none;
    text-decoration: none;
}

.back-to-login,
.login-link,
.register-link {
    text-align: center;
    margin-top: 25px;
    font-size: 14px;
}

.back-to-login a,
.login-link a,
.register-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.back-to-login a:hover,
.login-link a:hover,
.register-link a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.error-message {
    color: var(--error-color);
    font-size: 12px;
    text-align: center;
    margin: 5px 0 15px;
    display: none;
}

.top-text {
    text-align: center;
    margin-bottom: 40px;
}

.top-text h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
    font-size: 25px;
}

.top-text p {
    color: var(--text-dark);
    margin-bottom: 5px;
}

.top-text strong {
    color: black;
    font-weight: 600;
    margin-top: -5px;
}

.privacy {
    text-align: center;
    margin-top: 20px;
    font-size: 12px;
    color: var(--text-dark);
}

.privacy a {
    color: var(--primary-color);
    text-decoration: none;
}

.privacy a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 15px 0;
    font-size: 14px;
}

.remember-me {
    display: flex;
    align-items: center;
}

.remember-me input {
    margin-right: 8px;
    accent-color: var(--primary-color);
}

.forgot-password a {
    color: var(--primary-color);
    text-decoration: none;
}

.forgot-password a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.social-login {
    margin: 25px 0;
    text-align: center;
}

.social-login p {
    color: var(--text-dark);
    margin-bottom: 15px;
    position: relative;
}

.social-login p::before,
.social-login p::after {
    content: "";
    position: absolute;
    height: 1px;
    width: 30%;
    top: 50%;
    background: rgba(0, 0, 0, 0.1);
}

.social-login p::before {
    left: 0;
}

.social-login p::after {
    right: 0;
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-buttons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    font-size: 18px;
    transition: all 0.3s ease;
}

.social-buttons a.facebook {
    background: var(--facebook-color);
}

.social-buttons a.google {
    background: var(--google-color);
}

.social-buttons a.twitter {
    background: var(--twitter-color);
}

.social-buttons a:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

@media (max-width: 490px) {
   

  
  .from-container {
        padding: 35px;
        border-radius: 0;
        background-color: transparent;
        border: none;
        box-shadow: none;
    }
    body {
        padding: 0;
    }
    .otp-input {
        width: 40px;
        height: 50px;
        font-size: 20px;
    }
    .error-message {
        margin-left: 40px;
    }
    .remember-forgot {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}