* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI",
        Roboto, Arial, sans-serif;
    background: #f5f7f6;
    color: #1f2937;
}

button,
input {
    font: inherit;
}

button {
    -webkit-tap-highlight-color: transparent;
}

.page {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    padding: 32px 20px 50px;
}

/* Header / Logo */

.header {
    margin-bottom: 28px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 12px rgba(16, 24, 40, 0.08);
}

.brand-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.brand-name {
    font-size: 23px;
    line-height: 1.1;
    font-weight: 750;
    color: #18231a;
}

.brand-subtitle {
    margin-top: 3px;
    font-size: 13px;
    color: #667085;
}

/* Card */

.card {
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid #eaecf0;
    box-shadow: 0 8px 30px rgba(16, 24, 40, 0.06);
}

.card-content {
    padding: 32px;
}

/* Login */

.welcome-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #edf7ee;
    font-size: 24px;
    margin-bottom: 20px;
}

h1 {
    margin: 0;
    font-size: 26px;
    line-height: 1.25;
    letter-spacing: -0.3px;
    color: #101828;
}

.description {
    margin: 12px 0 25px;
    color: #667085;
    font-size: 15px;
    line-height: 1.6;
}

/* Google */

.google-button {
    width: 100%;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    border: 1px solid #d0d5dd;
    border-radius: 10px;
    background: #ffffff;
    color: #344054;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.15s ease, box-shadow 0.15s ease;
}

.google-button:hover {
    background: #f9fafb;
    box-shadow: 0 2px 6px rgba(16, 24, 40, 0.08);
}

.google-button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.google-logo {
    font-size: 20px;
    font-weight: 700;
    color: #4285f4;
}

.privacy-text {
    margin: 22px 0 0;
    font-size: 12px;
    line-height: 1.6;
    text-align: center;
    color: #98a2b3;
}

/* Account */

.account-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eaecf0;
}

.user-photo {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #edf2ee;
}

.account-info {
    min-width: 0;
}

.account-info h2 {
    margin: 0;
    font-size: 20px;
    color: #101828;
    word-break: break-word;
}

#userEmail {
    margin: 5px 0 0;
    font-size: 13px;
    color: #667085;
    word-break: break-all;
}

/* Sections */

.section {
    padding: 25px 0;
    border-bottom: 1px solid #eaecf0;
}

.section-title {
    display: flex;
    align-items: flex-start;
    gap: 13px;
}

.section-icon {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #edf7ee;
    font-size: 18px;
}

.section h3 {
    margin: 1px 0 5px;
    font-size: 16px;
    color: #101828;
}

.section p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: #667085;
}

/* Danger */

.danger-section {
    margin-top: 25px;
    padding: 20px;
    border-radius: 14px;
    border: 1px solid #fecdca;
    background: #fff8f7;
}

.danger-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
}

.danger-icon,
.dialog-danger-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fee4e2;
    color: #b42318;
}

.danger-icon {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 10px;
    font-size: 18px;
}

.danger-section h3 {
    margin: 1px 0 5px;
    font-size: 16px;
    color: #b42318;
}

.danger-section p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: #667085;
}

/* Buttons */

.delete-button {
    min-height: 44px;
    padding: 0 18px;
    border: none;
    border-radius: 9px;
    background: #d92d20;
    color: #ffffff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 650;
    transition: background 0.15s ease, opacity 0.15s ease;
}

.danger-section .delete-button {
    width: 100%;
}

.delete-button:hover:not(:disabled) {
    background: #b42318;
}

.delete-button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.signout-button {
    width: 100%;
    min-height: 44px;
    margin-top: 20px;
    border: 1px solid #d0d5dd;
    border-radius: 9px;
    background: #ffffff;
    color: #344054;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}

.signout-button:hover {
    background: #f9fafb;
}

.signout-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Messages */

.error-message {
    margin: 15px 0 0;
    color: #b42318;
    font-size: 13px;
    text-align: center;
}

.message {
    margin: 15px 0 0;
    color: #667085;
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
}

/* Dialog */

.dialog-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(16, 24, 40, 0.55);
}

.dialog {
    width: 100%;
    max-width: 450px;
    padding: 28px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 20px 50px rgba(16, 24, 40, 0.20);
}

.dialog-danger-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    font-size: 22px;
    margin-bottom: 18px;
}

.dialog h2 {
    margin: 0;
    font-size: 21px;
    color: #101828;
}

.dialog-description {
    margin: 12px 0;
    font-size: 14px;
    line-height: 1.6;
    color: #667085;
}

.warning-text {
    margin: 0;
    color: #b42318;
    font-size: 13px;
    font-weight: 650;
}

/* Confirmation */

.confirmation-box {
    margin-top: 22px;
    padding: 16px;
    border-radius: 11px;
    background: #f9fafb;
    border: 1px solid #eaecf0;
}

.confirmation-box label {
    display: block;
    margin-bottom: 9px;
    color: #344054;
    font-size: 13px;
    line-height: 1.5;
}

.confirmation-box strong {
    color: #101828;
}

.confirmation-box input {
    width: 100%;
    height: 44px;
    padding: 0 12px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    outline: none;
    background: #ffffff;
    color: #101828;
    font-size: 14px;
}

.confirmation-box input:focus {
    border-color: #1B5E20;
    box-shadow: 0 0 0 3px rgba(27, 94, 32, 0.10);
}

.confirmation-box input:disabled {
    background: #f2f4f7;
    cursor: not-allowed;
}

.confirmation-error {
    min-height: 17px;
    margin: 7px 0 0;
    color: #b42318;
    font-size: 12px;
}

/* Dialog buttons */

.dialog-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 24px;
}

.cancel-button {
    min-height: 44px;
    padding: 0 17px;
    border: 1px solid #d0d5dd;
    border-radius: 9px;
    background: #ffffff;
    color: #344054;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}

.cancel-button:hover:not(:disabled) {
    background: #f9fafb;
}

.cancel-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Mobile */

@media (max-width: 480px) {
    .page {
        padding: 22px 14px 35px;
    }

    .card-content {
        padding: 24px 20px;
    }

    .dialog {
        padding: 23px 20px;
    }

    .dialog-buttons {
        flex-direction: column-reverse;
    }

    .dialog-buttons button {
        width: 100%;
    }
}
