:root {
    --primary-color: #6F7251;
    --secondary-color: #F2F0E9;
    --accent-color: #E4C97A;
}

body {
    background: linear-gradient(135deg, #F2F0E9 0%, #e5e3d8 100%);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 40px 0;
}

.auth-container {
    max-width: 550px;
    margin: 0 auto;
}

.logo-section {
    text-align: center;
    margin-bottom: 30px;
}

.logo {
    width: 100px;
    height: 101px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: bold;
    color: white;
    margin-bottom: 15px;
}

.logo-text h1 {
    color: var(--primary-color);
    font-size: 32px;
    margin: 0;
    font-weight: bold;
}

.logo-text p {
    color: #888;
    font-style: italic;
    font-size: 14px;
    margin: 5px 0 0;
}

.auth-card {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.auth-card h2 {
    color: var(--primary-color);
    font-size: 24px;
    margin-bottom: 10px;
    text-align: center;
}

.auth-card .subtitle {
    text-align: center;
    color: #888;
    margin-bottom: 30px;
    font-size: 14px;
}

.form-label {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-control,
.form-select {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 15px;
    transition: all 0.3s;
    font-size: 15px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(228, 201, 122, 0.25);
}

.input-icon {
    position: relative;
}

.input-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
}

.input-icon .form-control {
    padding-left: 45px;
}

.phone-input-group {
    display: flex;
    gap: 10px;
}

.phone-prefix {
    background-color: var(--secondary-color);
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 15px;
    font-weight: 500;
    color: var(--primary-color);
    min-width: 80px;
    text-align: center;
}

.btn-primary-custom {
    background-color: var(--primary-color);
    color: white;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s;
    margin-top: 10px;
}

.btn-primary-custom:hover {
    background-color: #5a5c40;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(111, 114, 81, 0.3);
}

.divider {
    text-align: center;
    margin: 25px 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: #e0e0e0;
}

.divider span {
    background: white;
    padding: 0 15px;
    position: relative;
    color: #888;
    font-size: 14px;
}

.link-text {
    text-align: center;
    margin-top: 20px;
}

.link-text a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.link-text a:hover {
    color: var(--accent-color);
}

.forgot-link {
    text-align: right;
    margin-top: 10px;
    margin-bottom: 20px;
}

.forgot-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
}

.forgot-link a:hover {
    color: var(--accent-color);
}

.required-star {
    color: #dc3545;
}

.password-toggle {
    position: absolute;
    left: unset !important;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #888;
}

.password-toggle:hover {
    color: var(--primary-color);
}

@media (max-width: 576px) {
    .auth-card {
        padding: 30px 20px;
    }

    .phone-input-group {
        flex-direction: column;
    }

    .phone-prefix {
        width: 100%;
    }
}

/* Added from register.blade.php */
.terms-checkbox {
    display: flex;
    margin-top: 20px;
    padding: 15px;
    background-color: var(--secondary-color);
    border-radius: 8px;
}

.terms-checkbox label {
    font-size: 14px;
    color: #666;
    margin-left: 8px;
}

.terms-checkbox a {
    color: var(--primary-color);
    font-weight: 600;
}

/* Added from forget-password.blade.php */
.info-box {
    background-color: #e3f2fd;
    border-left: 4px solid #2196f3;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
}

.info-box p {
    margin: 0;
    color: #666;
    font-size: 13px;
    line-height: 1.6;
}

.info-box i {
    color: #2196f3;
    margin-right: 8px;
}

/* Added from reset-password.blade.php */
.input-icon i.icon-left {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
}

.input-icon .form-control {
    padding-left: 45px;
    padding-right: 45px;
    /* Added to accommodate password-toggle on the right */
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #888;
}

.password-toggle:hover {
    color: var(--primary-color);
}

.password-requirements {
    background-color: var(--secondary-color);
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
}

.password-requirements h6 {
    color: var(--primary-color);
    font-size: 14px;
    margin-bottom: 12px;
    font-weight: 600;
}

.requirement {
    display: flex;
    align-items: center;
    color: #666;
    font-size: 13px;
    margin-bottom: 8px;
}

.requirement:last-child {
    margin-bottom: 0;
}

.requirement i {
    margin-right: 10px;
    font-size: 12px;
    width: 16px;
}

.requirement.valid i {
    color: #4caf50;
}

.requirement.invalid i {
    color: #dc3545;
}

.success-message {
    text-align: center;
    padding: 20px;
}

.success-message.active {
    display: block;
}

.success-icon {
    width: 80px;
    height: 80px;
    background-color: #4caf50;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    animation: scaleIn 0.5s ease-out;
}

.success-icon i {
    font-size: 40px;
    color: white;
}

.text-olive {
    color: var(--primary-color) !important;
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
    }

    100% {
        transform: scale(1);
    }

}
.alert-danger {
    animation: shake 0.4s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}