*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:"poppins",sans-serif;
}
body{
    background-color: #c9d6ff;
    background:linear-gradient(to right,#e2e2e2,#c9d6ff);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    margin: 0;
}
.container{
    background:#fff;
    width: 400px;
    padding: 40px;
    margin:50px auto;
    border-radius: 20px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    position: relative;
    animation: fadeIn 0.3s ease-out;
}
form{
    margin:0 2rem;
}
.form-title{
    font-size:1.5rem;
    font-weight:bold;
    text-align:center;
    padding:1.3rem;
    margin-bottom:0.4rem;
}
input{
    color:inherit;
    width:100%;
    background-color:transparent;
    border:none;
    border-bottom:1px solid #757575;
    padding-left:1.5rem;
    font-size:15px;
}
.input-group{
    padding:1% 0;
    position:relative;
}
.input-group i{
    position:absolute;
    color:black;
}
input:focus{
    background-color: transparent;
    outline:transparent;
    border-bottom:2px solid #1d4ed8;
}
input::placeholder{
    color:transparent;
}
label{
    color:#757575;
    position:relative;
    left:1.2em;
    top:-1.3em;
    cursor:auto;
    transition:0.3s ease all;
}
input:focus~label,input:not(:placeholder-shown)~label{
    top:-3em;
    color:#1d4ed8;
    font-size:15px;
}
.recover{
    text-align:right;
    font-size:1rem;
    margin-bottom:1rem;
}
.recover a{
    text-decoration:none;
    color:rgb(125,125,235);
}
.recover a:hover{
    color:blue;
    text-decoration:underline;
}
button{
    font-size:1.1rem;
    padding:8px 0;
    border-radius:5px;
    outline:none;
    border:none;
    width:100%;
    background : #1d4ed8;
    color:white;
    cursor:pointer;
    transition:0.9s;
}
button:hover{
    background:#07001f;
}
.or{
    font-size:1.1rem;
    margin-top:0.5rem;
    text-align:center;
}
.icons{
    text-align:center;
}
.links{
    display:flex;
    justify-content:space-around;
    padding:0 4rem;
    margin-top:0.9rem;
    font-weight:bold;
}
 #signUpButton, #signInButton{
    color : #1d4ed8;
    border:none;
    background-color:transparent;
    font-size:1rem;
    font-weight:bold;
}
#signUpButton:hover, #signInButton:hover {
    text-decoration:underline;
    color:blue;
}

.messageDiv {
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
    text-align: center;
    font-size: 14px;
    transition: all 0.3s ease;
    width: 100%;
    margin-bottom: 15px;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.messageDiv.show {
    display: block !important;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { 
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Add these styles to your existing style.css file */

.forgot-password {
    text-align: right;
    margin-bottom: 15px;
}

.forgot-password a {
    color: #4285f4;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.forgot-password a:hover {
    color: #0d47a1;
    text-decoration: underline;
}

/* Responsive Design */
@media screen and (max-width: 480px) {
    .container {
        width: 90%;
        padding: 20px;
        margin: 20px auto;
    }

    .container img {
        width: 100px !important;
        height: 100px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        display: block !important;
    }

    .form-title {
        font-size: 24px;
        margin: 15px 0;
    }

    .input-group {
        margin-bottom: 15px;
    }

    .input-group input {
        padding: 12px 35px;
        font-size: 14px;
    }

    .input-group i {
        top: 14px;
        font-size: 16px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .or {
        margin: 15px 0;
        font-size: 14px;
    }

    .links {
        flex-direction: column;
        gap: 10px;
    }

    .links p {
        font-size: 14px;
    }

    .links button {
        width: 100%;
    }

    .forgot-password {
        text-align: center;
        margin: 10px 0;
    }
}

@media screen and (min-width: 481px) and (max-width: 768px) {
    .container {
        width: 80%;
        max-width: 500px;
        padding: 30px;
        margin: 30px auto;
    }

    .container img {
        width: 120px !important;
        height: 120px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        display: block !important;
    }
}

@media screen and (max-height: 700px) {
    .container {
        margin: 10px auto;
        padding: 20px;
    }

    .input-group {
        margin-bottom: 12px;
    }
}

/* Touch-friendly improvements */
@media (hover: none) {
    .btn,
    .links button,
    input[type="text"],
    input[type="email"],
    input[type="password"] {
        min-height: 44px;
    }

    .forgot-password a {
        padding: 10px 0;
        display: inline-block;
    }
}

/* Google button (refined) */
.google-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    border: 1px solid #dadce0;
    background: #fff;
    color: #3c4043;
    font-weight: 500;
    font-size: 15px;
    border-radius: 4px;
    padding: 10px 12px;
    line-height: 1.2;
    cursor: pointer;
    transition: box-shadow .2s ease, background .2s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.google-btn:hover { background:#ffffff; box-shadow:0 5px 7px rgba(0,0,0,0.2); }
.google-btn:active { background:#f1f3f4; }
.google-icon-wrapper {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:24px;
    height:24px;
    margin-right:8px;
}
.google-icon { width:24px; height:24px; display:block; }
.google-btn-text { flex:1; text-align:center; }
@media (max-width: 360px) { .google-btn-text { font-size:14px; } }

/* Centered login logo */
.login-logo {
    width:150px;
    height:150px;
    border-radius:50%;
    object-fit:cover;
    display:block;
    margin:0 auto 5px auto;
}