* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #dbe4f0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.page-container {
    position: relative;
    width: 100%;
    max-width: 650px;
    padding-top: 45px;
}

.logo-circle {
    width: 90px;
    height: 90px;
    background-color: #4a76c4;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    border: 4px solid #dbe4f0;
    overflow: hidden;
}

.logo-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.form-card {
    background-color: #f1f3f5;
    padding: 70px 45px 35px 45px;
    border-radius: 30px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.frm h2 {
    text-align: center;
    color: #1a2c4e;
    margin-bottom: 25px;
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: 0.5px;
}

.frm form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.col-half {
    flex: 1;
}

.col-quarter {
    width: 130px;
}

.input-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.frm input[type="text"],
.frm input[type="password"],
.frm input[type="number"] {
    width: 100%;
    padding: 12px;
    background-color: #dbe4f0;
    border: 2px solid #1a2c4e;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #333;
}

.frm input:focus {
    outline: none;
    border-color: #4a76c4;
    background-color: #ffffff;
}

.frm input[type="submit"] {
    width: 220px;
    padding: 12px;
    background-color: #4a76c4;
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    margin: 10px auto 0 auto;
    display: block;
    transition: background-color 0.2s;
}

.frm input[type="submit"]:hover {
    background-color: #3b5fa3;
}

.msg-box {
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.msg-success {
    background-color: #e6f4ea;
    color: #137333;
    border-left: 4px solid #137333;
}

.msg-error {
    background-color: #ffe8e8;
    color: #c53030;
    border-left: 4px solid #c53030;
}

.signup-link {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: #333;
}

.signup-link a {
    color: #1a2c4e;
    text-decoration: underline;
    font-weight: bold;
}

.signup-link a:hover {
    color: #4a76c4;
}

.password-strength-container {
    margin-top: 5px;
    margin-bottom: 15px;
}

.strength-meter {
    height: 4px;
    background-color: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.strength-bar {
    height: 100%;
    width: 0%;
    transition: width 0.3s ease, background-color 0.3s ease;
    border-radius: 4px;
}

.strength-bar.weak {
    background-color: #dc3545;
    width: 25%;
}

.strength-bar.medium {
    background-color: #ffc107;
    width: 50%;
}

.strength-bar.strong {
    background-color: #28a745;
    width: 100%;
}

.strength-text {
    font-size: 11px;
    font-weight: bold;
    margin-bottom: 8px;
}

.strength-text.weak {
    color: #dc3545;
}

.strength-text.medium {
    color: #ffc107;
}

.strength-text.strong {
    color: #28a745;
}

.password-rules {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 11px;
}

.password-rules li {
    margin-bottom: 4px;
    color: #666;
}

.password-rules li.valid {
    color: #28a745;
}

.password-rules li.invalid {
    color: #dc3545;
}

.password-rules li span {
    margin-right: 5px;
}

.contact-warning {
    font-size: 11px;
    margin-top: 5px;
    margin-bottom: 10px;
}

.contact-warning.valid {
    color: #28a745;
}

.contact-warning.invalid {
    color: #dc3545;
}

.contact-warning span {
    margin-right: 5px;
}