* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #0D4D6B 0%, #00758F 55%, #0091AD 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 24px 64px rgba(13, 77, 107, .35);
    width: 100%;
    max-width: 420px;
    overflow: hidden;
}

.header {
    background: linear-gradient(135deg, #0D4D6B 0%, #00758F 45%, #0091AD 100%);
    color: #fff;
    padding: 32px 30px 28px;
    text-align: center;
    position: relative;
}

.header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    background: linear-gradient(90deg, #0D4D6B, #00758F, #00B4CC, #7AB648);
}

.header h1 {
    font-size: 1.4rem;
    font-weight: 800;
}

.header p {
    font-size: .85rem;
    opacity: .9;
    margin-top: 4px;
}

.content {
    padding: 30px;
}

.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: .85rem;
    color: #1A2B3C;
}

.form-input {
    width: 100%;
    padding: .7rem .8rem;
    border: 1.5px solid #D1DEE5;
    border-radius: 8px;
    font-size: .95rem;
    transition: border-color .15s, box-shadow .15s;
}

.form-input:focus {
    outline: none;
    border-color: #00758F;
    box-shadow: 0 0 0 3px rgba(0, 117, 143, .12);
}

.btn {
    width: 100%;
    padding: .8rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    background: linear-gradient(135deg, #00758F 0%, #0D4D6B 100%);
    color: #fff;
    transition: opacity .2s;
}

.btn:hover {
    opacity: .92;
}

.btn:disabled {
    opacity: .6;
    cursor: default;
}

.msg {
    padding: .7rem .9rem;
    border-radius: 8px;
    font-size: .85rem;
    margin-bottom: 16px;
    display: none;
}

.msg.active {
    display: block;
}

.msg.error {
    background: #fde2e0;
    color: #a12820;
}

.msg.success {
    background: #e4f3d6;
    color: #3f6b1a;
}

.spinner {
    display: inline-block;
    width: 15px;
    height: 15px;
    border: 2px solid rgba(255, 255, 255, .4);
    border-top: 2px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    vertical-align: middle;
    margin-right: 6px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.back {
    display: block;
    text-align: center;
    margin-top: 18px;
    font-size: 12px;
    color: #6DAFC4;
    text-decoration: none;
}

.hint {
    font-size: 12px;
    color: #4A5B6C;
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.6;
}