* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: #ffffff;
    color: #1F2937;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font-family: inherit;
}

button {
    cursor: pointer;
}

.container {
    width: 100%;
    min-height: 100vh;
    padding: 20px 16px;
}


/* HEADER */

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: #8B1C5E;
}

.header-actions {
    display: flex;
    align-items: center;
}


/* ICON BUTTON */

.icon-button {
    width: 44px;
    height: 44px;

    border: 0;
    border-radius: 50%;

    background: #ffffff;

    display: grid;
    place-items: center;

    box-shadow: 0 8px 24px rgba(31, 41, 55, 0.10);

    cursor: pointer;

    color: #111827;

    font-size: 18px;
    font-weight: 800;

    overflow: hidden;

    transition: 0.2s;
}

.icon-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(31, 41, 55, 0.14);
}


/* PROFILE */

.profile-menu-wrapper {
    position: relative;
}

.profile-trigger {
    padding: 0;
}

.profile-avatar {
    width: 100%;
    height: 100%;

    border-radius: 50%;

    object-fit: cover;

    display: block;
}

.profile-dropdown {
    position: absolute;

    top: 58px;
    right: 0;

    width: 290px;

    background: #ffffff;

    border-radius: 24px;

    padding: 18px;

    box-shadow: 0 24px 60px rgba(0,0,0,0.12);

    border: 1px solid #EEF0F3;

    display: none;

    z-index: 100;
}

.profile-menu-wrapper:hover .profile-dropdown {
    display: block;
}

.profile-info {
    display: flex;
    align-items: center;
    gap: 14px;

    margin-bottom: 18px;
}

.profile-avatar-large {
    width: 56px;
    height: 56px;

    border-radius: 50%;

    object-fit: cover;

    flex-shrink: 0;
}

.profile-name {
    font-size: 16px;
    font-weight: 800;
    color: #111827;
}

.profile-email {
    margin-top: 4px;

    font-size: 13px;
    line-height: 1.4;

    color: #6B7280;

    word-break: break-word;
}


/* PROFILE ACTIONS */

.profile-actions {
    display: flex;
    gap: 10px;
}

.profile-action-button {
    flex: 1;

    height: 48px;

    border-radius: 14px;

    background: #F9FAFB;

    border: 1px solid #EEF0F3;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    color: #111827;

    font-size: 14px;
    font-weight: 700;

    transition: 0.2s;
}

.profile-action-button:hover {
    background: #F3F4F6;
    transform: translateY(-1px);
}

.profile-action-button.logout {
    color: #DC2626;
}


/* BUTTONS */

.primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 100%;

    border: 0;
    border-radius: 16px;

    padding: 14px 18px;

    background: #8B1C5E;

    color: #ffffff;

    font-size: 15px;
    font-weight: 700;

    transition: 0.2s;
}

.primary-button:hover {
    transform: translateY(-1px);
}


/* AUTH */

.auth-card {
    max-width: 420px;

    margin: 24px auto;

    background: #ffffff;

    padding: 24px;

    border-radius: 24px;

    box-shadow: 0 12px 40px rgba(31, 41, 55, 0.08);
}

.auth-card h1 {
    margin: 0 0 10px;

    font-size: 28px;
    line-height: 1.15;
}

.auth-card p {
    color: #6B7280;
}

.auth-card form {
    display: grid;
    gap: 12px;

    margin-top: 20px;
}

.auth-card form p {
    margin: 0;
}

.auth-card label {
    display: block;

    margin-bottom: 6px;

    font-size: 14px;
    font-weight: 700;

    color: #374151;
}

.auth-card input {
    width: 100%;

    padding: 13px 14px;

    border-radius: 14px;

    border: 1px solid #E5E7EB;

    font-size: 15px;

    transition: 0.2s;
}

.auth-card input:focus {
    outline: none;

    border-color: #8B1C5E;

    box-shadow: 0 0 0 3px rgba(139, 28, 94, 0.12);
}

.auth-card .helptext,
.auth-card ul {
    display: block;

    margin: 6px 0 0;
    padding: 0;

    list-style: none;

    font-size: 12px;
    line-height: 1.4;

    color: #9CA3AF;
}

.auth-card li {
    margin: 3px 0;
}

.auth-card .errorlist {
    margin: 0 0 8px;

    padding: 10px 12px;

    border-radius: 12px;

    background: #FEF2F2;

    color: #B91C1C;

    font-size: 13px;

    list-style: none;
}

.auth-link {
    margin-top: 16px;

    text-align: center;

    font-size: 14px;
}

.auth-link a {
    color: #8B1C5E;
    font-weight: 700;
}


/* GOOGLE LOGIN */

.social-divider {
    display: flex;
    align-items: center;
    justify-content: center;

    margin: 18px 0;

    color: #9CA3AF;

    font-size: 13px;
    font-weight: 600;
}

.google-button {
    width: 100%;
    min-height: 52px;

    border-radius: 16px;

    border: 1px solid #E5E7EB;

    background: #ffffff;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    font-weight: 700;

    color: #111827;

    transition: 0.2s;
}

.google-button:hover {
    background: #F9FAFB;
}

.google-button img {
    width: 20px;
    height: 20px;
}


/* DESKTOP */

@media (min-width: 768px) {

    .container {
        max-width: 1100px;

        margin: 0 auto;

        padding: 40px 20px;
    }
}

.logo-wrap {
    text-decoration: none;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: #8B1C5E;
    line-height: 1;
}

.logo-subtitle {
    margin-top: 4px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #9CA3AF;
}

.login-button {
    font-size: 18px;
    color: #111827;
}

.profile-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.profile-letter {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
}

.logo-image {
    height: 42px;
    width: auto;
    display: block;
}