* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    background: linear-gradient(
        to bottom right, /* Diagonal gradient */
        #ff4739, /* Top-left color */
        #ff4500 10%, /* Transition to #ff4500 */
        #515151 50%, /* Transition to #515151 */
        black 100% /* End with black */
    );
    background-repeat: no-repeat; /* Prevents repeating */
    background-attachment: fixed; /* Ensures gradient covers entire viewport */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    overflow: auto; /* Allow scrolling when keypad appears */
}

.container {
    background: #fff;
    width: 90%;
    max-width: 450px;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin-top: 60px; /* Add margin to prevent overlap with logo */
    transition: transform 0.3s ease;
}

.form-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    color: #333;
}

.input-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.input-group i {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #333;
}

input {
    width: 100%;
    padding: 10px 10px 10px 35px;
    border: none;
    border-bottom: 1px solid #4b4b4b;
    font-size: 15px;
    background-color: transparent;
    outline: none;
}

input:focus {
    border-bottom: 2px solid #333;
}

label {
    position: absolute;
    left: 35px;
    top: 50%;
    transform: translateY(-50%);
    color: #777;
    transition: all 0.3s ease;
    pointer-events: none;
}

input:focus ~ label,
input:not(:placeholder-shown) ~ label {
    top: 0;
    font-size: 12px;
    color: #333;
}

.recover {
    text-align: right;
    margin-bottom: 1rem;
}

.recover a {
    color: #ff4739;
    text-decoration: none;
}

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

.btn {
    width: 100%;
    padding: 10px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn:hover {
    background: #333;
}

.or {
    margin: 1rem 0;
    color: #777;
}

.icons {
    display: flex;
    justify-content: center;
    position: -10px;
    gap: -10rem;
    margin-bottom: 1rem;
}

.icons i {
    font-size: 1.5rem;
    color: #515151;
    cursor: pointer;
    transition: color 0.3s ease;
}

.icons i:hover {
    color: #333;
}

.links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.3rem;
}

.links p {
    font-size: 1rem;
    margin: 0;
    color: #777;
}
/* For the auth container */
.auth-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

/* For the legal links */
.legal-links-container {
    margin-top: 30px; /* Extra space above links */
    text-align: center;
    font-size: 13px;
    width: 100%;
}

.legal-links-container a {
    color: #000; /* Black text */
    text-decoration: none;
    transition: color 0.2s ease;
}

.legal-links-container a:hover {
    color: #888; /* Light grey on hover */
}

.divider {
    margin: 0 8px;
    color: #ccc;
}

.links button:hover {
    text-decoration: underline;
}
.password-toggle {
    position: absolute;
    left: 350px; /* Changed from right to left */
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #777;
}

.recover a {
    color: #ff4739; /* Changed to the specified color */
}
