@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');

body {
    font-family: 'Inter', sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 20px;
}

.auth-card {
    background: white;
    padding: 30px 40px;
    border: 1px solid #ccc;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    max-width: 400px;
    width: 100%;
}

.auth-header {
    text-align: center;
    margin-bottom: 20px;
}

.auth-header h1 {
    margin: 0;
    font-size: 1.8rem;
    color: #222;
}

.auth-form {
    margin-top: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-input {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    background-color: white;
}

.form-input:-webkit-autofill {
    font-size: 14px !important;
    -webkit-box-shadow: 0 0 0 30px white inset !important;
    -webkit-text-fill-color: #000 !important;
}

.form-button {
    width: 100%;
    padding: 10px;
    background-color: #008D62;
    color: white;
    border: none;
    font-weight: bold;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.form-button:hover {
    background-color: #007b55;
}

.form-footer {
    text-align: right;
    margin-bottom: 15px;
}

.forgot-link {
    font-size: 0.85rem;
    color: #008D62;
    text-decoration: none;
}

.forgot-link:hover {
    text-decoration: underline;
}

/* Left & right icons inside input */
.input-with-icon {
    position: relative;
}

.input-with-icon .icon {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    color: #888;
    font-size: 1rem;
    pointer-events: none; /* don't block clicks on input */
}

.input-with-icon input {
    padding-left: 40px;  /* space for left icon */
    padding-right: 40px; /* space for toggle eye */
    box-sizing: border-box;
}

.input-with-icon .toggle-password {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 1rem;
    color: #888;
    transition: color 0.2s;
}

/* Hover effect on eye icon */
.input-with-icon .toggle-password:hover {
    color: #008D62;
}
/* Flash container positioned at top-right */
.flash-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

/* Toast with slide-in animation */
.toast {
    padding: 12px 20px;
    border-radius: 6px;
    margin-bottom: 10px;
    font-weight: bold;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
    opacity: 1;
    animation: slideIn 0.4s ease-out;
    transition: opacity 0.5s ease-out;
}

.toast.success {
    background-color: #4BB543;
    color: white;
}

.toast.error {
    background-color: #FF5C5C;
    color: white;
}

/* Slide-in from right animation */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}
/* Hide built-in reveal/toggle icon in Edge/Chrome */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
    display: none;
}

input[type="password"]::-webkit-credentials-auto-fill-button,
input[type="password"]::-webkit-inner-spin-button {
    display: none !important;
}
