/* Custom variables for Buyer Interface */
:root {
    --accent-orange: #e67e22;
    --warm-brown: #6F4E37;
    --soft-cream: #f9f4ef;
    --white: #ffffff;
    --error-red: #d9534f;
}

* {
    box-sizing: border-box; /* Crucial for mobile sizing */
}

.buyer-auth-body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #fdf5e6 0%, #fae5d3 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
}

.login-card {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    width: 92%;
    max-width: 420px;
    text-align: center;
    margin: 30px auto;
    transition: opacity 0.4s ease;
}

.card-header h2 {
    color: var(--warm-brown);
    margin: 0 0 8px 0;
    font-weight: 700;
}

.card-header p {
    color: #777;
    font-size: 0.95rem;
    margin-bottom: 30px;
}

.input-group {
    text-align: left;
    margin-bottom: 22px;
}

.input-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--warm-brown);
    margin-bottom: 8px;
    font-weight: 600;
}

.input-group input, 
.input-group textarea {
    width: 100%; /* Changed from 95% */
    padding: 14px 16px;
    border: 2px solid #eee;
    border-radius: 12px;
    outline: none;
    transition: all 0.3s;
    font-family: inherit;
    font-size: 0.95rem;
}

.input-group input:focus {
    border-color: var(--accent-orange);
    box-shadow: 0 0 0 4px rgba(230, 126, 34, 0.1);
}

.show-password-wrapper {
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.btn-login {
    width: 100%;
    padding: 15px;
    background: var(--accent-orange);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 10px;
}

.btn-login:hover {
    background: var(--warm-brown);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(111, 78, 55, 0.2);
}

.btn-login:active {
    transform: scale(0.98);
}

.error-msg {
    color: var(--error-red);
    background: #fdf2f2;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 0.85rem;
    border: 1px solid #f9d6d5;
    text-align: left;
}

.card-footer {
    margin-top: 30px;
    font-size: 0.95rem;
    color: #666;
    border-top: 1px solid #f0f0f0;
    padding-top: 20px;
}

.card-footer a {
    color: var(--accent-orange);
    text-decoration: none;
    font-weight: 700;
}