@import url('https://fonts.googleapis.com/css2?family=Inconsolata:wght@400;500;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --neutral-0: hsl(0, 0%, 100%);
    --neutral-300: hsl(252, 6%, 83%);
    --neutral-500: hsl(245, 15%, 58%);
    --neutral-700: hsl(245, 19%, 35%);
    --neutral-900: hsl(248, 70%, 10%);
    --orange-500: hsl(7, 88%, 67%);
    --orange-700: hsl(7, 71%, 60%);
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Inconsolata', monospace;
    background: var(--neutral-900) url('assets/images/background-desktop.png') no-repeat center center;
    background-size: cover;
    color: var(--neutral-0);
    overflow: hidden;
}

.container {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    position: relative;
}


.bg-pattern-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}


.bg-pattern {
    position: absolute;
    opacity: 1;
    mix-blend-mode: screen;
}


.top-left {
    top: 5%;
    right: 2%;
    width: 25%;
    transform: rotate(-5deg);
    z-index: 1;
}

.bottom-right {
    bottom: 0;
    left: 7%;
    width: 40%;
    transform: rotate(5deg);
    z-index: 1;
}

.mid-left {
    top: 45%;
    right: 25%;
    width: 10%;
    z-index: 1;
    opacity: 1;
}

.mid-right {
    top: 45%;
    left: 8%;
    width: 12%;
    opacity: 1;
    z-index: 1;
}


.form {
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    position: relative;
    z-index: 2;
    margin-top: -2vh;
}

.logo {
    width: 85px;
    margin: 0 auto 0.625rem;
}

.header {
    text-align: center;
    margin-bottom: 0.625rem;
}

h1 {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 0.25rem;
    letter-spacing: -0.02em;
    color: var(--neutral-0);
}

.subtitle {
    font-size: 0.875rem;
    color: var(--neutral-300);
    font-weight: 400;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

label {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--neutral-0);
}

input {
    padding: 0.6875rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 0.875rem;
    font-family: inherit;
    background: rgba(0, 0, 0, 0.4);
    color: var(--neutral-0);
    outline: none;
    transition: all 0.2s ease;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05);
}

input::placeholder {
    color: var(--neutral-500);
}

input:focus {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.dropzone {
    background: rgba(0, 0, 0, 0.4);
    border: 2px dashed rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.125rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.dropzone:hover {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.upload-icon {
    width: 36px;
    height: 36px;
    opacity: 0.8;
}

.dropzone p {
    font-size: 0.9375rem;
    color: var(--neutral-300);
    margin: 0;
}

.file-hint {
    font-size: 0.75rem;
    color: var(--neutral-500);
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin-top: -0.125rem;
}

.file-hint::before {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    background: url('assets/images/icon-info.svg') no-repeat center;
    background-size: contain;
    opacity: 0.6;
}

.error {
    color: var(--orange-500);
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    display: none;
}

.error::before {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    background: url('assets/images/icon-error.svg') no-repeat center;
    background-size: contain;
    opacity: 0.9;
}

.submit-btn {
    margin-top: 0.125rem;
    padding: 0.75rem;
    background: var(--orange-500);
    color: var(--neutral-0);
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
    width: 100%;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.submit-btn:hover {
    background: var(--orange-700);
}


:focus {
    outline: none;
}

:focus-visible {
    outline: 1px solid rgba(255, 255, 255, 0.1);
    outline-offset: 2px;
}

@media (min-height: 750px) {
    .form {
        gap: 1.25rem;
        margin-top: 0;
    }

    .logo {
        width: 110px;
        margin: 0 auto 1.25rem;
    }

    h1 {
        font-size: 2.15rem;
        margin-bottom: 0.5rem;
        line-height: 1.2;
    }

    .subtitle {
        font-size: 1.125rem;
    }

    label {
        font-size: 1.125rem;
    }

    input {
        padding: 1.125rem;
        font-size: 1.125rem;
    }

    .dropzone {
        padding: 2rem;
        gap: 0.75rem;
        border-width: 2px;
    }

    .upload-icon {
        width: 48px;
        height: 48px;
    }

    .dropzone p {
        font-size: 1.125rem;
    }

    .file-hint {
        font-size: 0.875rem;
        gap: 0.5rem;
        margin-top: 0;
    }

    .file-hint::before {
        width: 16px;
        height: 16px;
    }

    .submit-btn {
        margin-top: 0.25rem;
        padding: 1.125rem;
        font-size: 1.125rem;
        height: 60px;
    }
}

@media (max-width: 768px) {
    html, body {
        background-image: url('assets/images/background-tablet.png');
    }

    .container {
        padding: 1.25rem;
    }

    h1 {
        font-size: 2rem;
    }

    .logo {
        width: 100px;
    }

    label {
        font-size: 1.125rem;
    }

    input, .submit-btn {
        padding: 1rem;
        font-size: 1rem;
    }

    .dropzone {
        padding: 1.75rem;
    }
}

@media (max-width: 375px) {
    html, body {
        background-image: url('assets/images/background-mobile.png');
    }

    .container {
        padding: 1rem;
    }

    h1 {
        font-size: 1.75rem;
    }

    .dropzone {
        padding: 1.5rem;
    }
}

.avatar-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.avatar-actions {
    display: flex;
    gap: 0.5rem;
}

.avatar-btn {
    background: none;
    border: none;
    color: var(--neutral-300);
    font-family: inherit;
    font-size: 0.75rem;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s ease;
}

.avatar-btn:hover {
    color: var(--neutral-0);
}

.success-container {
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 2;
    margin-top: -2vh;
}

.success-header {
    margin-bottom: 1.25rem;
}

.success-header h1 {
    font-size: 2.5rem;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    align-items: baseline;
    font-weight: 800;
}

.success-header .subtitle {
    font-size: 2rem;
    color: var(--neutral-0);
    font-weight: 800;
    line-height: 1.1;
    margin-top: 0.25rem;
    letter-spacing: -0.02em;
}

.user-name {
    background: linear-gradient(to right, var(--orange-500), #FF9B82);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--orange-500); 
    white-space: nowrap;
}

.success-message {
    font-size: 1rem;
    color: var(--neutral-300);
    margin-bottom: 3.5rem;
    line-height: 1.5;
    max-width: 360px;
    font-weight: 400;
}

.user-email {
    color: var(--orange-500);
    font-weight: 500;
}

.ticket {
    position: relative;
    width: 100%;
    max-width: 420px;
    overflow: visible;
    margin: 0.5rem;
}

.ticket-pattern {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(90% + 1rem);
    height: auto;
    opacity: 1;
    mix-blend-mode: soft-light;
    pointer-events: none;
}

.ticket-content {
    position: relative;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    z-index: 1;
    margin: 0.5rem;
}

.ticket-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.ticket-logo {
    width: 28px;
    height: 28px;
}

.ticket-brand-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.ticket-brand {
    font-size: 1rem;
    font-weight: 700;
    color: var(--neutral-0);
    line-height: 1;
    letter-spacing: -0.01em;
}

.event-details {
    font-size: 0.75rem;
    color: var(--neutral-300);
    opacity: 0.8;
    line-height: 1;
}

.attendee-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.ticket-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.attendee-details {
    display: flex;
    flex-direction: column;
    gap: 0.3125rem;
}

.attendee-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--neutral-0);
    line-height: 1;
    letter-spacing: -0.01em;
}

.github-handle {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    color: var(--neutral-300);
    opacity: 0.8;
}

.github-icon {
    width: 14px;
    height: 14px;
    opacity: 0.7;
}

.ticket-number {
    position: absolute;
    right: -1rem;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    transform-origin: center left;
    font-size: 0.75rem;
    color: var(--neutral-300);
    opacity: 0.6;
    font-family: 'Inconsolata', monospace;
    letter-spacing: 0.03em;
    font-weight: 500;
}

.ticket-heading {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--neutral-300);
    margin-bottom: 1rem;
    opacity: 0.8;
    font-weight: 500;
}

@media (min-height: 750px) {
    .success-container {
        gap: 1.25rem;
        margin-top: 0;
    }

    .success-header h1 {
        font-size: 3rem;
        gap: 0.75rem;
    }

    .success-header .subtitle {
        font-size: 2.5rem;
    }

    .success-message {
        font-size: 1.125rem;
        margin-bottom: 3.5rem;
    }

    .ticket-content {
        padding: 2rem;
        gap: 2.25rem;
    }

    .ticket-logo {
        width: 32px;
        height: 32px;
    }

    .ticket-brand {
        font-size: 1.125rem;
    }

    .event-details {
        font-size: 0.875rem;
    }

    .ticket-avatar {
        width: 52px;
        height: 52px;
    }

    .attendee-name {
        font-size: 1.125rem;
    }

    .github-handle {
        font-size: 0.875rem;
    }

    .ticket-number {
        font-size: 0.875rem;
        right: -1.25rem;
    }

    .ticket-header {
        gap: 1rem;
    }
} 
