:root {
    --cww-primary: #0789bc;
    --cww-primary-hover: #09b3f5;
    --cww-text-dark: #0F172A;
    --cww-text: #364151;
    --cww-soft: #E7F6FF;
    --cww-white: #FFFFFF;
    --cww-border: #D1DAE5;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--cww-text);
    background: linear-gradient(180deg, #ffffff 0%, #e7f6ff 100%);
}

.cww-public-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 16px;
    background: #ffffff;
    border-bottom: 1px solid var(--cww-border);
}

.cww-public-nav .brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--cww-text-dark);
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.cww-public-nav .brand img {
    width: 130px;
    max-width: 100%;
    height: auto;
}

.cww-public-nav .links {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.cww-public-nav .links a {
    color: var(--cww-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.cww-public-nav .links a:hover {
    color: var(--cww-primary-hover);
    text-decoration: underline;
}

@media (max-width: 640px) {
    .cww-public-nav {
        flex-direction: column;
        align-items: flex-start;
    }
}

.cww-auth-page {
    min-height: calc(100vh - 64px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 20px;
}

.cww-card {
    background: var(--cww-white);
    border: 1px solid var(--cww-border);
    border-radius: 10px;
    box-shadow: 0 14px 36px rgba(7, 137, 188, 0.15);
    padding: 36px;
    width: 100%;
    max-width: 430px;
}

.cww-logo-wrap {
    text-align: center;
    margin-bottom: 14px;
}

.cww-logo {
    width: 160px;
    max-width: 100%;
    height: auto;
}

h1 {
    color: var(--cww-text-dark);
    margin: 0 0 8px;
    font-size: 24px;
    text-align: center;
}

.subtitle {
    color: var(--cww-text);
    text-align: center;
    margin: 0 0 20px;
    font-size: 14px;
}

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

label {
    display: block;
    margin-bottom: 8px;
    color: var(--cww-text-dark);
    font-weight: 600;
    font-size: 13px;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--cww-border);
    border-radius: 6px;
    font-size: 14px;
}

input:focus {
    outline: none;
    border-color: var(--cww-primary);
    box-shadow: 0 0 0 3px rgba(7, 137, 188, 0.14);
}

.btn {
    width: 100%;
    padding: 12px;
    border: 0;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    background: var(--cww-primary);
    color: var(--cww-white);
}

.btn:hover { background: var(--cww-primary-hover); }

.alert {
    padding: 10px 12px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 13px;
}

.alert-error {
    background: #fdecea;
    color: #b02a37;
    border: 1px solid #f5c2c7;
}

.alert-success {
    background: #e9f7ef;
    color: #1e7e34;
    border: 1px solid #cfead9;
}

.links {
    margin-top: 12px;
    text-align: center;
    font-size: 13px;
}

.links a {
    color: var(--cww-primary);
    text-decoration: none;
}

.links a:hover { text-decoration: underline; }
