.create-profile-page {
    background: linear-gradient(180deg, #f8fbff 0%, #edf7f0 100%);
}

.create-profile-main {
    position: relative;
    padding: clamp(2rem, 5vw, 4rem) 1rem;
    background:
        linear-gradient(rgba(8, 15, 37, 0.72), rgba(8, 15, 37, 0.72)),
        url('/images/students graduating.jpg.jpg') center/cover no-repeat;
}

.create-profile-shell {
    width: min(100%, 76rem);
    margin: 0 auto;
}

.create-profile-card {
    width: min(100%, 36rem);
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 1.6rem;
    box-shadow: 0 28px 55px rgba(15, 23, 42, 0.28);
    padding: clamp(1.5rem, 4vw, 3rem);
    backdrop-filter: blur(20px);
}

.create-profile-header {
    text-align: center;
    margin-bottom: 1.75rem;
}

.create-profile-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    text-decoration: none;
    margin-bottom: 1.35rem;
}

.create-profile-brand img {
    width: auto;
    height: 3rem;
    border-radius: 0.9rem;
}

.create-profile-brand span {
    font-size: 1.35rem;
    font-weight: 700;
    color: #0f172a;
}

.create-profile-header h1 {
    margin: 0 0 0.5rem;
    color: #0f172a;
    font-size: clamp(1.8rem, 4vw, 2.25rem);
}

.create-profile-header p {
    margin: 0;
    color: #475569;
    line-height: 1.6;
}

.create-profile-form {
    display: grid;
    gap: 1.1rem;
}

.create-profile-row {
    display: grid;
    gap: 1rem;
}

.create-profile-field {
    display: grid;
    gap: 0.55rem;
}

.create-profile-field label {
    color: #0f172a;
    font-weight: 600;
}

.create-profile-field input {
    width: 100%;
    min-height: 3.2rem;
    padding: 0.95rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.95rem;
    background: #fff;
    color: #0f172a;
    font: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.create-profile-field input:focus {
    outline: none;
    border-color: #1d4ed8;
    box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.12);
}

.create-profile-password-wrap {
    position: relative;
}

.create-profile-password-wrap input {
    padding-right: 3rem;
}

.create-profile-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    font-size: 1rem;
}

.create-profile-toggle:hover,
.create-profile-toggle:focus-visible {
    color: #1d4ed8;
    outline: none;
}

.create-profile-button {
    width: 100%;
    min-height: 3.25rem;
    border: 0;
    border-radius: 0.95rem;
    background: linear-gradient(135deg, #1d4ed8, #16a34a);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    cursor: pointer;
    box-shadow: 0 16px 34px rgba(29, 78, 216, 0.24);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.create-profile-button:hover,
.create-profile-button:focus-visible {
    transform: translateY(-1px);
    outline: none;
}

.create-profile-links {
    margin-top: 1.5rem;
    text-align: center;
    color: #475569;
}

.create-profile-links a {
    color: #1d4ed8;
    text-decoration: none;
    font-weight: 600;
}

.create-profile-links a:hover,
.create-profile-links a:focus-visible {
    text-decoration: underline;
    outline: none;
}

.create-profile-strength-meter {
    height: 0.35rem;
    margin-top: 0.45rem;
    border-radius: 999px;
    overflow: hidden;
    background: #e2e8f0;
    display: none;
}

.create-profile-strength-meter span {
    display: block;
    height: 100%;
    width: 0;
    transition: width 0.2s ease, background-color 0.2s ease;
}

.create-profile-rules {
    margin-top: 0.6rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 0.9rem;
    color: #64748b;
    font-size: 0.88rem;
}

.create-profile-rule {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.create-profile-rule.is-valid {
    color: #166534;
    font-weight: 600;
}

.create-profile-caps-warning {
    display: none;
    margin-top: 0.55rem;
    color: #b45309;
    font-size: 0.88rem;
    font-weight: 600;
    align-items: center;
    gap: 0.45rem;
}

.create-profile-trap {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.create-profile-success-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.94);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.5rem;
    z-index: 1200;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.create-profile-success-overlay.is-active {
    opacity: 1;
    pointer-events: auto;
}

.create-profile-success-panel {
    background: #fff;
    border-radius: 1.5rem;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.14);
    padding: 2rem;
    width: min(100%, 24rem);
}

.create-profile-success-panel i {
    font-size: 3.75rem;
    color: #16a34a;
    margin-bottom: 1rem;
}

.create-profile-success-panel h2 {
    margin: 0 0 0.5rem;
    color: #0f172a;
}

.create-profile-success-panel p {
    margin: 0;
    color: #475569;
}

@media (min-width: 48rem) {
    .create-profile-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
