@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css?family=Agbalumo');

*{
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root{
    --cream: #FFF7EB;
    --light-brown: #C9A99A;
    --dark-brown: #2c231a;
    --dark-pink: #d7b4b0;
    --light-pink: #e0bfac;
    --pink: #ffa3b1;        
    --dark-pink: #E3747F;   
    --pink-hover: #c09598;        
    --dark-pink-hover: #ba515a;   
    --font: "Poppins", sans-serif;  
    --body-color: rgb(255, 253, 253);

    --tran-02: all 0.2s ease;
    --tran-03: all 0.3s ease;
    --tran-04: all 0.4s ease;
    --tran-05: all 0.5s ease;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #FFF7EB;  
    font-family: var(--font);
    margin: 0;
    overflow-x: hidden;
    position: relative;
    padding: 20px;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 150%;
    height: 150%;
    background: 
        radial-gradient(circle at 30% 20%, 	#ffa3b12c 15px, transparent 1px),
        radial-gradient(circle at 70% 90%, #e0bfacca 5px, transparent 2px),
        radial-gradient(circle at 70% 90%, #e3747f39 3px, transparent 2px),
        radial-gradient(circle at 30% 20%, #d475173b 1px, transparent 2px);
    background-size: 170px 170px, 190px 190px;
    animation: floatBackground 30s ease infinite;
    z-index: 0;
}
@keyframes floatBackground {
  0% {
    background-position: 0 0, 0 0;
    transform: scale(1);
    transform: translateY(0px) rotate(0deg); 
  }
  50% {
    background-position: 90px 10px, -10px 100px;
    transform: scale(1.05);
    transform: translateY(-10px) rotate(10deg); 
    
  }
  100% {
    background-position: 0 0, 0 0;
    transform: scale(1);
    transform: translateY(0px) rotate(0deg); 
  }
}
.container{
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto;
    min-height: 70vh;
    width: 100%;
    max-width: 900px;
    padding: 0;
    border-radius: 20px;
    background-color: #fffcf7;
    box-shadow: 0px 0px 50px #00000050;
    overflow: hidden;
    animation: fadeIn 1s ease forwards;
    z-index: 10;
}

.image img{
    min-width: 30%;
    width: 50%;
    animation: float 2.5s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
}

.logo-container {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-direction: column;
    background: linear-gradient(140deg, var(--dark-brown) 50%, #ffa953 160%);
    border-radius: 20px;
    animation: fadeIn 0.3s ease forwards;
    z-index: 2;
    padding: 40px 20px;
}

.logo-container::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 30% 70%, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.05) 2px, transparent 2px);
    background-size: 80px 80px, 120px 120px;
    animation: rotate 40s linear infinite;
    z-index: 1;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from {
        top: 100px;
        opacity: 0;
    }
    to {
        opacity: 1;
        top: 0px;
    }
}

.container h2{
    color: var(--dark-brown);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    margin-bottom: 30px;
}

.logo-container h1{
    margin: 0;
    font-family: 'Agbalumo', sans-serif;
    font-size: clamp(1.8rem, 4vw, 3rem);
    color: white;
    position: relative;
    z-index: 2;
}

.logo-container h3{
    margin: 0;
    color: white;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    position: relative;
    z-index: 2;
}

.form-container{
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-direction: column;    
    border-radius: 20px;
    width: 50%;
    background-color: var(--cream);
    padding: 60px 40px;
    min-height: 100%;
}

.error{
    margin: 0;
    font-size: 1rem;
}

.inputlbl{
    width: 79%;
    text-align: left;
    margin-top: 20px;
    font-size: 90%;
}

input,
button{
    border: none;
    outline: none;
}

.input-container{
    display: flex;
    width: 80%;
    position: relative;
    align-items: center;
    background-color: white;
    border-radius: 5px;
    border: 2px solid #d7b4b062;
    color: var(--dark-brown);
    transition: var(--tran-03);
}

.input-container:focus-within {
    border-color: #d7b4b0a8;
    box-shadow: 0 0 0 3px rgba(255, 163, 177, 0.1);
    transform: translateY(-2px);
}

.icon{
    margin-left: 10px;
    font-size: 1.2rem;
}

input{
    background: none;
    width: 100%;
    padding: 0.8rem;
    height: 3px;
    font-weight: var(--font-semi-bold);
    border: 3px solid transparent;
    border-radius: 1rem;
    color: var(--dark-brown);
    font-size: 1rem;
}

::placeholder{
    color: var(--light-brown);
}

.forgot-password {
    margin: 10px 0 10px 0%;
    font-size: 12px;
    text-decoration: none;
    color: var(--dark-pink);
    transition: var(--tran-03);
}

.forgot-password:hover {
    color: var(--dark-pink-hover);
}

.login-btn {
    background: var(--pink);
    border: none;
    padding: 5px 5px;
    width: 80%;
    border-radius: 5px;
    cursor: pointer;
    color: white;
    font-weight: bold;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--tran-03);
    border-bottom: 5px solid #ee939cbd;
    border-right: 5px solid #ee939cc3;
    border-top: 5px solid #ffd6dcb5;
    border-left: 5px solid #ffd6dcd0;    
}

.submit-btn:hover{
    background-color: var(--dark-pink);
    transform: translateY(-2px);
}   

.login-btn:hover{
    background-color: var(--dark-pink);
    transform: translateY(-2px);
}

.lbl{
    width: 100%;
    text-align: center;
    margin: 0;    
    margin-top: 35px;
    color: var(--light-brown);
    font-size: clamp(0.5rem, 1.5vw, 0.8rem);
}

.links {
    margin: 20px 0 10px;
    font-size: 12px;
    text-align: center;
}

.links a {
    text-decoration: none;
    color: var(--dark-pink);
    transition: var(--tran-03);
}

a:hover{
    transition: var(--tran-04);
    color: var(--dark-pink-hover);
}

.error {
    position: absolute;
    color: rgb(173, 43, 58);
    font-size: 12px;
    margin-bottom: 17px;
}

.success-message {
    color: #d7b4b0;
    font-size: 14px;
    font-weight: bold;
}
    
#show-password {
    display: none;
}

label[for="show-password"] {
    display: flex;
    align-items: center;  
    cursor: pointer;
    margin-left: 0;
    justify-content: flex-start;
    font-size: 0.85em;
}

label[for="show-password"]::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--light-brown);
    border-radius: 4px;
    margin-right: 10px;
    vertical-align: middle;
    transition: var(--tran-03);
}

#show-password:checked + label[for="show-password"]::before {
    background-color: var(--dark-pink);
    content: '✔';
    color: #fff;
    font-size: 14px;
    text-align: center;
    line-height: 20px;
}

.checkbox-container {
    margin: 15px 0px 25px 0px;
    width: 80%;
    display: flex;
    justify-content: flex-start;    
}
@keyframes slideRight{
    from { right: 100%; left: 0;}
    to { right: 0; left:50%}
}
@keyframes slideLeft{
    from { right: 0; left: 50%;}
    to { right: 100%; left:0;}
}
@keyframes slideDown{
    from { top: 0; }
    to { top: 10% ;}
}


/* Responsive Design */
@media (max-width: 770px) {
    body {
        padding: 10px;
        overflow-y: auto;
    }
    
    .container {
        flex-direction: column;
        width: 95%;
        max-width: none;
        min-height: auto;
        height: auto;
    }
    
    .logo-container {
        position: absolute;
        width: 100%;
        height: auto;
        min-height: 300px;
        left: 0 !important;
        right: auto !important;
        padding: 30px 20px;
        border-radius: 20px 20px 0 0;
    }
    
    .logo-container h1 {
        font-size: 2.5rem;
        margin-bottom: 10px;
    }
    
    .logo-container h3 {
        font-size: 1rem;
    }
    
    .image img {
        width: 150px;
        min-width: 150px;
        margin-bottom: 10px;
    }
    
    .form-container {
        width: 100%;
        padding: 40px 30px;
        border-radius: 0 0 20px 20px;
    }
    
    .container h2 {
        font-size: 1.5rem;
        margin-bottom: 25px;
    }
    
    .input-container {
        width: 90%;
        margin-bottom: 15px;
    }
    
    .inputlbl {
        width: 89%;
        margin-top: 15px;
    }
    
    .login-btn {
        width: 90%;
        padding: 12px 5px;
        font-size: 0.9rem;
    }
    
    .checkbox-container {
        width: 90%;
        margin: 10px 0 20px 0;
    }
    
    .lbl {
        font-size: 0.7rem;
        margin-top: 25px;
    }
    
    .links {
        font-size: 11px;
        margin: 15px 0 5px;
    }
    
    .forgot-password {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 5px;
    }
    
    .container {
        width: 98%;
        border-radius: 15px;
    }
    
    .logo-container {
        padding: 25px 15px;
        min-height: 280px;
        border-radius: 15px 15px 0 0;
    }
    
    .logo-container h1 {
        font-size: 2rem;
    }
    
    .logo-container h3 {
        font-size: 0.9rem;
    }
    
    .image img {
        width: 50px;
        min-width: 50px;
    }
    
    .form-container {
        padding: 30px 20px;
        border-radius: 0 0 15px 15px;
    }
    
    .container h2 {
        font-size: 1.3rem;
    }
    
    .input-container {
        width: 95%;
    }
    
    .inputlbl {
        width: 94%;
    }
    
    .login-btn {
        width: 95%;
    }
    
    .checkbox-container {
        width: 95%;
    }
    
    input {
        font-size: 0.9rem;
    }
    
    .icon {
        font-size: 1rem;
    }
}

/* Large screens */
@media (min-width: 1200px) {
    .container {
        max-width: 900px;
    }
    
    .form-container {
        padding: 30px 10px;
    }
    
    .logo-container {
        padding: 60px 40px;
    }
}