/* ===============================
   Agent Login & Register Styles
   =============================== */

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    background: #f7f9fc;
}

.agent-login-wrapper {
    display: flex;
    justify-content: center;
    align-items: stretch;
    padding: 60px 20px;
    gap: 40px;
    flex-wrap: wrap;
}

.agent-login-card, .register-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    width: 100%;
    max-width: 400px;
    flex: 1 1 300px;
    animation: fadeInUp 0.8s ease;
}

.agent-login-card h2,
.register-card h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.agent-login-card input {
    width: 100%;
    padding: 12px;
    margin: 12px 0;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 15px;
}

.agent-login-card button {
    width: 100%;
    padding: 12px;
    background-color: #1a73e8;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s ease;
}

.agent-login-card button:hover {
    background-color: #155cc3;
}

.register-card p {
    font-size: 15px;
    color: #444;
    margin-bottom: 20px;
    line-height: 1.6;
}

.register-card a {
    display: inline-block;
    padding: 12px 24px;
    background: #138808;
    color: white;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s;
}

.register-card a:hover {
    background: #0f5c07;
}

.error-msg, .success-msg {
    margin-bottom: 15px;
    color: #d8000c;
    font-weight: 500;
}

.success-msg {
    color: #3c763d;
}

.forgot-link {
    display: block;
    text-align: right;
    font-size: 14px;
    margin-top: -8px;
    margin-bottom: 16px;
    color: #007bff;
    text-decoration: none;
}

.forgot-link:hover {
    text-decoration: underline;
}

/* Fade-in animation */
@keyframes fadeInUp {
    from {
        transform: translateY(40px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .agent-login-wrapper {
        flex-direction: column;
        padding: 30px 20px;
    }
}

/* Ensure content doesn't overflow on mobile */
* {
    box-sizing: border-box;
}

body, html {
    max-width: 100%;
    overflow-x: hidden;
}

/* Prevent flex items from causing overflow */
.agent-login-wrapper {
    box-sizing: border-box;
}

/* Fix for cards on small screens */
@media (max-width: 480px) {
    .agent-login-card,
    .register-card {
        padding: 30px 20px;
        width: 100%;
        max-width: 100%;
    }
}

