/* Authentication Pages - Common Styles */

.auth-wrapper {
    min-height: calc(100vh - 400px);
    padding: 60px 20px;
    background: #ffffff;
}

.auth-container {
    background: #ffffff;
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.auth-logo {
    display: none; /* Hidden when using site header */
}

.auth-logo img {
    max-width: 200px;
    height: auto;
}

.auth-title {
    font-size: 40px;
    font-weight: 700;
    color: #013879;
    text-align: center;
    margin-bottom: 10px;
}

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

.auth-form {
    margin-bottom: 20px;
    width: 100%;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.form-group label .required {
    color: #e74c3c;
}

/* Match existing site input styles */
.form-control {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    color: #222;
    padding: 18px 15px;
    background: #F6F8FA;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

@media (max-width: 767px) {
    .form-control {
        padding: 18px 18px;
        font-size: 14px;
    }
}

.form-control:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(1, 56, 121, 0.1);
}

.form-control::placeholder {
    color: #999;
}

.password-input-wrapper {
    position: relative;
}

.password-input-wrapper .form-control {
    padding-right: 45px;
}

.page-form .toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #171717;
    cursor: pointer;
    padding: 5px;
    width: auto;
    height: auto;
    margin: 0;
    font-size: 16px;
}

.page-form .toggle-password:hover {
    color: #013879;
}

.error-message {
    display: block;
    color: #e74c3c;
    font-size: 12px;
    margin-top: 5px;
}

.success-message {
    display: block;
    color: #27ae60;
    font-size: 12px;
    margin-top: 5px;
}

.help-text {
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}

/* Match existing site button styles */
.page-form .btn {
    appearance: none;
    box-shadow: none;
    background: #DA7A1B;
    min-width: 170px;
    text-align: center;
    color: #fff;
    border-radius: 6px;
    overflow: hidden;
    padding: 0 33px;
    position: relative;
    width: max-content;
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    margin: 0;
}

@media (max-width: 767px) {
    .btn {
        min-height: 44px;
        padding: 0 12px;
        font-size: 13px;
    }
}

.btn.btn-primary:before {
    background: #e0ffed;
    opacity: 1;
    content: "";
    position: absolute;
    top: 50%;
    z-index: 0;
    width: 0;
    height: 100%;
    transform: translate(-50%, -50%);
    transition: all 0.5s;
    left: 50%;
    border-radius: 50%;
}

.btn.btn-secondary:before {
    background: #ffecd9;
    opacity: 1;
    content: "";
    position: absolute;
    top: 50%;
    z-index: 0;
    width: 0;
    height: 100%;
    transform: translate(-50%, -50%);
    transition: all 0.5s;
    left: 50%;
    border-radius: 50%;
}

.btn:hover:before {
    width: 200%;
    height: 120%;
}

.page-form .btn-primary {
    background: #23BC60;
    color: #ffffff;
}

.page-form .btn-primary:hover {
    color: #23BC60;
}

.btn-primary:disabled {
    background: #ccc;
    border-color: #ccc;
    cursor: not-allowed;
}

.btn-secondary {
    background: #f5f5f5;
    color: #333;
    border-color: #f5f5f5;
}

.page-form .btn-secondary:hover {
    background: #DA7A1B;
    color: #DA7A1B;
}

.page-form .btn-block {
    width: 100%;
}

.btn .btn-text,
.btn .btn-loader {
    position: relative;
    z-index: 1;
}

.btn .btn-loader {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.icon-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.auth-footer {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin-top: 20px;
}

.auth-footer a {
    color: #013879;
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-error {
    background: #fee;
    border: 1px solid #fcc;
    color: #c33;
}

.alert-success {
    background: #efe;
    border: 1px solid #cfc;
    color: #3c3;
}

.alert-warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
}

.message-container {
    margin-bottom: 20px;
}

.text-center {
    text-align: center;
}

/* Responsive */
@media (max-width: 576px) {
    .auth-container {
        padding: 0;
    }

    .auth-title {
        font-size: 24px;
    }
}

/* Icon styles */
.icon-check::before { content: "✓"; }
.icon-alert::before { content: "⚠"; }
.icon-user::before { content: "👤"; }
.icon-briefcase::before { content: "💼"; }

.icon-eye::before,
.icon-eye-slash::before {
    display: inline-block;
    width: 18px;
    height: 18px;
}

.icon-eye::before {
    content: url("../../img/auth/eye-password-show.svg");
}

.icon-eye-slash::before {
    content: url("../../img/auth/eye-password-hide.svg");
}

.icon-arrow-left::before { content: "←"; }
