/* ==========================================================================
   Exact Match Authentication Styles for Manpower HR
   Matching the provided UI designs
   ========================================================================== */

/* Page Background */
body.auth-body {
    background-color: #f7f9fa;
    color: #333333;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* Auth Top Navigation / Back link */
.auth-top-nav {
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.auth-top-nav .back-to-home {
    color: #4b5563;
    font-size: 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
}
.auth-top-nav .back-to-home:hover {
    color: #194a8d;
    text-decoration: none;
}

/* Center Container */
.auth-page-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 20px 60px 20px;
    min-height: calc(100vh - 80px);
}

/* Register Card (Matches Image 1) */
.m-register-card {
    background: #ffffff;
    border: 1px solid #e9edf2;
    border-radius: 8px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.04);
    max-width: 900px;
    width: 100%;
    padding: 45px 50px;
    margin: auto;
}

/* Login Card (Matches Image 2) */
.m-login-card {
    background: #ffffff;
    border: 1px solid #e9edf2;
    border-radius: 8px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.04);
    max-width: 540px;
    width: 100%;
    padding: 45px 45px;
    margin: auto;
}

/* Logo in Card */
.m-card-logo {
    margin-bottom: 28px;
}
.m-card-logo img {
    max-height: 60px;
    width: auto;
    object-fit: contain;
}

/* Typography matching screenshots */
.m-heading-serif {
    font-family: "Georgia", "Merriweather", "Times New Roman", serif;
    font-size: 32px;
    font-weight: 500;
    color: #1a2233;
    line-height: 1.25;
    margin-bottom: 8px;
}

.m-subtext {
    font-size: 15px;
    color: #718096;
    margin-bottom: 30px;
    font-weight: 400;
}

/* Form Styles */
.m-form-group {
    margin-bottom: 22px;
}

.m-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #4a5568;
    margin-bottom: 8px;
}

.m-label .req-star {
    color: #ef4444;
    font-weight: 600;
    margin-left: 2px;
}

.m-label .helper-text {
    color: #1f2937;
    font-weight: 500;
}

/* Inputs */
.m-input {
    width: 100%;
    height: 46px;
    padding: 10px 14px;
    font-size: 14px;
    color: #1f2937;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background-color: #ffffff;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.m-input::placeholder {
    color: #9ca3af;
    font-size: 14px;
}

.m-input:focus {
    border-color: #3b82f6;
    outline: none;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

/* Phone input with country code dropdown */
.m-phone-group {
    display: flex;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    height: 46px;
    background: #ffffff;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.m-phone-group:focus-within {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

.m-country-select {
    width: 80px;
    height: 100%;
    border: none;
    border-right: 1px solid #d1d5db;
    background: transparent;
    padding: 0 10px;
    font-size: 14px;
    color: #374151;
    cursor: pointer;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%236b7280%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 10px top 50%;
    background-size: 8px auto;
}

.m-phone-input {
    flex: 1;
    border: none;
    height: 100%;
    padding: 10px 14px;
    font-size: 14px;
    color: #1f2937;
    outline: none;
}
.m-phone-input::placeholder {
    color: #9ca3af;
}

/* Resume File Input (Matches Image 1) */
.m-file-upload-box {
    border: 1px solid #d1d5db;
    border-radius: 6px;
    height: 46px;
    padding: 6px 12px;
    display: flex;
    align-items: center;
    background: #ffffff;
    cursor: pointer;
    overflow: hidden;
}

.m-file-upload-box input[type="file"] {
    display: none;
}

.m-browse-btn {
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    padding: 6px 14px;
    font-size: 13px;
    color: #374151;
    margin-right: 12px;
    flex-shrink: 0;
    pointer-events: none;
}

.m-file-status {
    font-size: 13px;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Submit Button in Register (Matches Image 1) */
.m-btn-submit {
    background-color: #4c95f7;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 11px 32px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    display: inline-block;
    margin-top: 10px;
}

.m-btn-submit:hover {
    background-color: #3882e8;
}

/* Sign In Button in Login (Matches Image 2) */
.m-btn-signin {
    width: 100%;
    background-color: #1a4f9c;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 13px 20px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 5px;
}

.m-btn-signin:hover {
    background-color: #143e7c;
}

/* Links below Login button (Matches Image 2) */
.m-login-links-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    font-size: 14px;
}

.m-blue-link {
    color: #2563eb;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s;
}

.m-blue-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.m-bottom-prompt {
    text-align: center;
    margin-top: 25px;
    font-size: 14px;
    color: #4b5563;
}

/* Header Login/Signup Button */
.header-login-signup-btn {
    background-color: #1b62d8 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 20px !important;
    padding: 7px 18px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 0.3px !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
    text-decoration: none !important;
    box-shadow: 0 2px 8px rgba(27, 98, 216, 0.25) !important;
}

.header-login-signup-btn:hover {
    background-color: #0067ed !important;
    color: #ffffff !important;
    text-decoration: none !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 103, 237, 0.35) !important;
}

/* Alerts */
.m-alert {
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 20px;
    display: none;
}
.m-alert-error {
    background-color: #fef2f2;
    border: 1px solid #fee2e2;
    color: #b91c1c;
}
.m-alert-success {
    background-color: #f0fdf4;
    border: 1px solid #dcfce7;
    color: #15803d;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .m-register-card {
        padding: 30px 20px;
    }
    .m-login-card {
        padding: 30px 20px;
    }
    .m-heading-serif {
        font-size: 26px;
    }
    .auth-top-nav {
        padding: 15px 20px;
    }
}
