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

body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background: radial-gradient(50% 50% at 50% 50%, #FFFFFF 0%, #4F4CFD 100%);
    font-family: 'Roboto', sans-serif;
}

main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: #fff;
    padding: 40px 20px;
    border-radius: 20px;
    width: 65%;
    height: 75%;
    border: 4px solid black;
}

h1 {
    margin: 30px 0 0;
    font-size: 48px;
    color: #4F4CFD;
    font-weight: 600;
    line-height: 64px;    
}

p {
    margin: 16px 0 30px;
    font-size: 24px;
    color: #0D0D0D;
    font-weight: 400;
    line-height: 36px;    
}

.input-row {
    display: flex;
    gap: 41px;
    margin: 20px 0;
    width: 100%;
    justify-content: center;
}

form {
    width: 100%;
}

.input-row input {
    padding: 20px;
    border-radius: 10px;
    font-size: 16px;
    width: 100%; 
    max-width: 426px;
    border: 1px solid #4F4CFD;
}

.input-row input:focus {    
    border: 2px solid #4F4CFD;
    outline: none; 
}

button {
    margin-top: 20px;
    width: 100%;
    max-width: 426px;
    background: #0D0D0D;
    color: #fff;
    border: none;
    height: 56px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 22px;
    font-weight: 700;
    text-align: center;    
}

.login-text {
    margin-top: 20px;
    font-size: 16px;
    color: #0D0D0D;
}

.login-link {
    color: #4F4CFD;
    text-decoration: none;
    font-weight: 700;
}

.login-link:hover {
    text-decoration: underline;
}

/* Media query for mobile devices */
@media (max-width: 768px) {
    main {
        width: 85%; 
        height: auto;
        padding: 20px; 
    }

    h1 {
        font-size: 36px; 
        line-height: 48px;
    }

    p {
        font-size: 18px; 
        line-height: 28px; 
    }

    .input-row {
        flex-direction: column; 
        gap: 20px; 
        align-items: center;
    }

    .input-row input {
        width: calc(100% - 30px); 
        max-width: 396px;
        font-size: 14px;
        padding: 15px; 
    }

    button {
        width: 100%; 
        font-size: 18px; 
    }

    .login-text {
        font-size: 14px;
    }
}