@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&display=swap');


/* General Styles */
body {
    font-family: 'Lato', sans-serif;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    padding: 10px; /* Prevents content from touching screen edges */
}

/* Container */
.container {
    position: relative;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    width: 100%;
    max-width: 400px; /* Ensures it doesn’t get too wide */
    margin: auto;
    padding: 50px 40px 30px 40px;
    box-sizing: border-box; /* Ensures padding doesn't exceed width */
    border: 1px solid #3e8e41;

}

/* Headings */
h2 {
    color: #333;
    margin-bottom: 15px;
}

/* Form Inputs */
input {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box; /* Prevents input overflow */
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    cursor: pointer;
}

.password-toggle i {
    font-size: 24px; 
    color: #2e7d32;
}


/* Buttons */
button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 14px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
    width: 100%;
    margin-top: 20px;
}

button:hover {
    background-color: #45a049;
}

/* Back Button - Positioned at the Top Inside the Container */
.back-btn {
    position: absolute;
    top: 15px;
    left: 40px;
}

.back-btn button {
    background-color: transparent;
    color: #4CAF50;
    border: 2px solid #4CAF50;
    padding: 8px 12px;
    font-size: 14px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

button i {
    margin-right: 5px; /* Spacing between icon and text */
}


.back-btn button:hover {
    background-color: #4CAF50;
    color: white;
}

/* Flash Messages */
.flash {
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
    text-align: center;
    font-size: 14px;
}

.flash.success { background-color: #4CAF50; color: white; }
.flash.danger { background-color: #f44336; color: white; }
.flash.info { background-color: #2196F3; color: white; }

.address-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
    margin-top: 20px;
}

.input-group {
    flex: 1 1 30%;
    min-width: 250px;
    display: flex;
    flex-direction: column;
}

.form-label {
    font-weight: 600;
    margin-bottom: 6px;
    color: #333;
    font-size: 14px;
    text-align: left;
}

select, input {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: #fff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

select:focus, input:focus {
    border-color: #4CAF50;
    outline: none;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.4);
}


/* Responsive Design */
@media (max-width: 768px) {
    .container {
        width: 90%;
        padding: 40px 30px;
    }

    .back-btn {
        top: 10px;
        left: 10px;
    }

    .back-btn button {
        font-size: 13px;
        padding: 6px 10px;
    }
}

@media (max-width: 480px) {
    .container {
        width: 95%;
        padding: 30px;
    }

    input {
        padding: 10px;
        font-size: 14px;
    }

    button {
        padding: 12px;
        font-size: 14px;
    }

    .back-btn {
        top: 5px;
        left: 10px;
    }

    .back-btn button {
        font-size: 12px;
        padding: 5px 8px;
    }
}
